projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a better name for the label relocations while emitting them for Jump Tables
[oota-llvm.git]
/
include
/
llvm
/
Function.h
diff --git
a/include/llvm/Function.h
b/include/llvm/Function.h
index ccc006cfcfb2ea0e9265a89aec47a1bfb93c47f7..04c1442400e42cfd64e6943aec8a57f1c618f37c 100644
(file)
--- a/
include/llvm/Function.h
+++ b/
include/llvm/Function.h
@@
-27,6
+27,7
@@
namespace llvm {
class FunctionType;
namespace llvm {
class FunctionType;
+class LLVMContext;
// Traits for intrusive list of basic blocks...
template<> struct ilist_traits<BasicBlock>
// Traits for intrusive list of basic blocks...
template<> struct ilist_traits<BasicBlock>
@@
-126,6
+127,10
@@
public:
const Type *getReturnType() const; // Return the type of the ret val
const FunctionType *getFunctionType() const; // Return the FunctionType for me
const Type *getReturnType() const; // Return the type of the ret val
const FunctionType *getFunctionType() const; // Return the FunctionType for me
+ /// getContext - Return a pointer to the LLVMContext associated with this
+ /// function, or NULL if this function is not bound to a context yet.
+ LLVMContext *getContext() const;
+
/// isVarArg - Return true if this function takes a variable number of
/// arguments.
bool isVarArg() const;
/// isVarArg - Return true if this function takes a variable number of
/// arguments.
bool isVarArg() const;
@@
-395,6
+400,10
@@
public:
/// including any contained basic blocks.
///
void dropAllReferences();
/// including any contained basic blocks.
///
void dropAllReferences();
+
+ /// hasAddressTaken - returns true if there are any uses of this function
+ /// other than direct calls or invokes to it.
+ bool hasAddressTaken() const;
};
inline ValueSymbolTable *
};
inline ValueSymbolTable *