mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Add new helper function which makes it even easier to do this sort of thing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,6 +90,12 @@ public:
|
|||||||
/// it.
|
/// it.
|
||||||
Function *getOrInsertFunction(const std::string &Name, const FunctionType *T);
|
Function *getOrInsertFunction(const std::string &Name, const FunctionType *T);
|
||||||
|
|
||||||
|
/// getOrInsertFunction - Look up the specified function in the module symbol
|
||||||
|
/// table. If it does not exist, add a prototype for the function and return
|
||||||
|
/// it. This version of the method takes a null terminated list of function
|
||||||
|
/// arguments, which makes it easier for clients to use.
|
||||||
|
Function *getOrInsertFunction(const std::string &Name, const Type *RetTy,...);
|
||||||
|
|
||||||
/// getFunction - Look up the specified function in the module symbol table.
|
/// getFunction - Look up the specified function in the module symbol table.
|
||||||
/// If it does not exist, return null.
|
/// If it does not exist, return null.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user