diff options
author | Stephane Marchesin <[email protected]> | 2008-09-30 20:50:49 +0200 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-10-02 10:19:47 -0400 |
commit | 3f4b67f5d715f53fec618ed0e48615f87ff1cfda (patch) | |
tree | f51882ea22b9de6c5864c803940df6108180240b /src/gallium/auxiliary/gallivm/instructionssoa.cpp | |
parent | fdcaf569d446db830a6eafd9c7f7c1b1030c0a93 (diff) |
Gallivm: port to llvm 2.4.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/instructionssoa.cpp')
-rw-r--r-- | src/gallium/auxiliary/gallivm/instructionssoa.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/instructionssoa.cpp b/src/gallium/auxiliary/gallivm/instructionssoa.cpp index 9a3ed9f538d..5863f370954 100644 --- a/src/gallium/auxiliary/gallivm/instructionssoa.cpp +++ b/src/gallium/auxiliary/gallivm/instructionssoa.cpp @@ -259,7 +259,7 @@ void InstructionsSoa::createBuiltins() { MemoryBuffer *buffer = MemoryBuffer::getMemBuffer( (const char*)&soabuiltins_data[0], - (const char*)&soabuiltins_data[Elements(soabuiltins_data)-1]); + (const char*)&soabuiltins_data[Elements(soabuiltins_data)]); m_builtins = ParseBitcodeFile(buffer); std::cout<<"Builtins created at "<<m_builtins<<std::endl; assert(m_builtins); @@ -458,8 +458,8 @@ void InstructionsSoa::injectFunction(llvm::Function *originalFunc, int op) func = Function::Create(originalFunc->getFunctionType(), GlobalValue::ExternalLinkage, originalFunc->getName(), currentModule()); func->setCallingConv(CallingConv::C); - const PAListPtr pal; - func->setParamAttrs(pal); + const AttrListPtr pal; + func->setAttributes(pal); currentModule()->dump(); } else { DenseMap<const Value*, Value *> val; |