Fixup
This commit is contained in:
@@ -15,7 +15,7 @@ class PPUTranslator final : public cpu_translator
|
|||||||
std::map<u64, const ppu_reloc*> m_relocs;
|
std::map<u64, const ppu_reloc*> m_relocs;
|
||||||
|
|
||||||
// Attributes for function calls which are "pure" and may be optimized away if their results are unused
|
// Attributes for function calls which are "pure" and may be optimized away if their results are unused
|
||||||
const llvm::AttributeList m_pure_attr;
|
const llvm::AttributeSet m_pure_attr;
|
||||||
|
|
||||||
// LLVM function
|
// LLVM function
|
||||||
llvm::Function* m_function;
|
llvm::Function* m_function;
|
||||||
@@ -297,7 +297,7 @@ public:
|
|||||||
|
|
||||||
// Call a function with attribute list
|
// Call a function with attribute list
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
llvm::CallInst* Call(llvm::Type* ret, llvm::AttributeList attr, llvm::StringRef name, Args... args)
|
llvm::CallInst* Call(llvm::Type* ret, llvm::AttributeSet attr, llvm::StringRef name, Args... args)
|
||||||
{
|
{
|
||||||
// Call the function
|
// Call the function
|
||||||
return m_ir->CreateCall(m_module->getOrInsertFunction(name, llvm::FunctionType::get(ret, {args->getType()...}, false), attr), {args...});
|
return m_ir->CreateCall(m_module->getOrInsertFunction(name, llvm::FunctionType::get(ret, {args->getType()...}, false), attr), {args...});
|
||||||
@@ -307,7 +307,7 @@ public:
|
|||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
llvm::CallInst* Call(llvm::Type* ret, llvm::StringRef name, Args... args)
|
llvm::CallInst* Call(llvm::Type* ret, llvm::StringRef name, Args... args)
|
||||||
{
|
{
|
||||||
return Call(ret, llvm::AttributeList{}, name, args...);
|
return Call(ret, llvm::AttributeSet{}, name, args...);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle compilation errors
|
// Handle compilation errors
|
||||||
|
|||||||
Reference in New Issue
Block a user