mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
Allow an arbitrary prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af2bf0ab30
commit
2c2475296d
@ -31,7 +31,7 @@ class Mangler {
|
||||
std::set<const Value *> MangledGlobals;
|
||||
|
||||
Module &M;
|
||||
bool AddUnderscorePrefix;
|
||||
const char *Prefix;
|
||||
|
||||
unsigned TypeCounter;
|
||||
std::map<const Type*, unsigned> TypeMap;
|
||||
@ -44,9 +44,9 @@ class Mangler {
|
||||
void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names);
|
||||
public:
|
||||
|
||||
// Mangler ctor - if AddUnderscorePrefix is true, then all public global
|
||||
// symbols will be prefixed with an underscore.
|
||||
Mangler(Module &M, bool AddUnderscorePrefix = false);
|
||||
// Mangler ctor - if a prefix is specified, it will be prepended onto all
|
||||
// symbols.
|
||||
Mangler(Module &M, const char *Prefix = "");
|
||||
|
||||
/// getTypeID - Return a unique ID for the specified LLVM type.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user