diff options
author | Stephane Marchesin <[email protected]> | 2008-09-30 20:50:49 +0200 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2008-09-30 20:50:49 +0200 |
commit | 4ae161e9409f8b5d73306bbf382c7b27d5038ab3 (patch) | |
tree | 347e9a499dc8aad079509d84658a18ebe8ee30e0 /src/gallium/auxiliary/gallivm/instructionssoa.cpp | |
parent | 7379d0ef8f533b0aa760cd21b219223602002a56 (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; |