diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-05 06:43:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-05 06:43:27 +0000 |
commit | caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39 (patch) | |
tree | 7c796406a2cef275ff69b5a17248e2a671e732e3 /include/llvm/Function.h | |
parent | 637b77224f8debb7f2a22ffa8572e133ce098401 (diff) | |
download | external_llvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.zip external_llvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.tar.gz external_llvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.tar.bz2 |
Add a new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index e67ef01..a540ee3 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -106,6 +106,13 @@ public: unsigned getIntrinsicID() const; bool isIntrinsic() const { return getIntrinsicID() != 0; } + /// renameLocalSymbols - This method goes through the Function's symbol table + /// and renames any symbols that conflict with symbols at global scope. This + /// is required before printing out to a textual form, to ensure that there is + /// no ambiguity when parsing. + void renameLocalSymbols(); + + /// deleteBody - This method deletes the body of the function, and converts /// the linkage to external. /// |