diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-14 00:30:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-14 00:30:31 +0000 |
commit | d11e6472573c61c44ca946c843ad83acdbe3c71f (patch) | |
tree | cefd97eff6984d196b459f5917be9e2e53a2630d /include/llvm/Support | |
parent | a6acb4f5fdc27cf17ccdbcf023034e76b874d16d (diff) | |
download | external_llvm-d11e6472573c61c44ca946c843ad83acdbe3c71f.zip external_llvm-d11e6472573c61c44ca946c843ad83acdbe3c71f.tar.gz external_llvm-d11e6472573c61c44ca946c843ad83acdbe3c71f.tar.bz2 |
Add method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/Mangler.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 5b312f8..2528420 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -1,4 +1,4 @@ -//===-- Mangler.h - Self-contained c/asm llvm name mangler ------*- C++ -*-===// +//===-- Mangler.h - Self-contained llvm name mangler ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,25 +7,21 @@ // //===----------------------------------------------------------------------===// // -// Unified name mangler for CWriter and assembly backends. +// Unified name mangler for various backends. // //===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MANGLER_H #define LLVM_SUPPORT_MANGLER_H -namespace llvm { - -class Value; -class Module; - -} // End llvm namespace - #include <map> #include <set> #include <string> namespace llvm { +class Value; +class Module; +class GlobalValue; class Mangler { /// This keeps track of which global values have had their names @@ -40,6 +36,8 @@ class Mangler { ValueMap Memo; unsigned Count; + + void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names); public: // Mangler ctor - if AddUnderscorePrefix is true, then all public global |