summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-17 18:22:35 +0000
committerChris Lattner <sabre@nondot.org>2010-01-17 18:22:35 +0000
commitb4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db (patch)
tree7d4f572b24b4b7f8143a9db3827cd9eda25d5165 /llvm/include
parent915ad96b401c51ccf2cecf9d4b6af777b7d445da (diff)
downloadbcm5719-llvm-b4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db.tar.gz
bcm5719-llvm-b4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db.zip
now that mangler is in libtarget, it can use MCAsmInfo instead of clients
having to pass various fields from it in. Simplify. llvm-svn: 93686
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Target/Mangler.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/llvm/include/llvm/Target/Mangler.h b/llvm/include/llvm/Target/Mangler.h
index 132e0e720f0..07ff7e29c0f 100644
--- a/llvm/include/llvm/Target/Mangler.h
+++ b/llvm/include/llvm/Target/Mangler.h
@@ -19,11 +19,10 @@
namespace llvm {
class Twine;
-class Type;
-class Module;
class Value;
class GlobalValue;
template <typename T> class SmallVectorImpl;
+class MCAsmInfo;
class Mangler {
public:
@@ -34,17 +33,7 @@ public:
};
private:
- /// Prefix - This string is added to each symbol that is emitted, unless the
- /// symbol is marked as not needing this prefix.
- const char *Prefix;
-
- /// PrivatePrefix - This string is emitted before each symbol with private
- /// linkage.
- const char *PrivatePrefix;
-
- /// LinkerPrivatePrefix - This string is emitted before each symbol with
- /// "linker_private" linkage.
- const char *LinkerPrivatePrefix;
+ const MCAsmInfo &MAI;
/// AnonGlobalIDs - We need to give global values the same name every time
/// they are mangled. This keeps track of the number we give to anonymous
@@ -59,8 +48,7 @@ private:
public:
// Mangler ctor - if a prefix is specified, it will be prepended onto all
// symbols.
- Mangler(Module &M, const char *Prefix = "", const char *privatePrefix = "",
- const char *linkerPrivatePrefix = "");
+ Mangler(const MCAsmInfo &mai) : MAI(mai) {}
/// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
/// and the specified global variable's name. If the global variable doesn't
OpenPOWER on IntegriCloud