summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-05 06:43:27 +0000
committerChris Lattner <sabre@nondot.org>2004-12-05 06:43:27 +0000
commitcaa4ae7c3fcbb69081eb1556d2c5fbaa21202b39 (patch)
tree7c796406a2cef275ff69b5a17248e2a671e732e3 /include
parent637b77224f8debb7f2a22ffa8572e133ce098401 (diff)
downloadllvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.tar.gz
llvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.tar.bz2
llvm-caa4ae7c3fcbb69081eb1556d2c5fbaa21202b39.tar.xz
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')
-rw-r--r--include/llvm/Function.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index e67ef01a56..a540ee3f74 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.
///