mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
make the mangler take an MCContext instead of an MAI.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -23,7 +23,7 @@ class Twine;
|
||||
class Value;
|
||||
class GlobalValue;
|
||||
template <typename T> class SmallVectorImpl;
|
||||
class MCAsmInfo;
|
||||
class MCContext;
|
||||
|
||||
class Mangler {
|
||||
public:
|
||||
@ -34,7 +34,7 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
const MCAsmInfo &MAI;
|
||||
const MCContext &Context;
|
||||
|
||||
/// 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
|
||||
@ -47,9 +47,7 @@ private:
|
||||
unsigned NextAnonGlobalID;
|
||||
|
||||
public:
|
||||
// Mangler ctor - if a prefix is specified, it will be prepended onto all
|
||||
// symbols.
|
||||
Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(1) {}
|
||||
Mangler(const MCContext &context) : Context(context), NextAnonGlobalID(1) {}
|
||||
|
||||
/// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
|
||||
/// and the specified global variable's name. If the global variable doesn't
|
||||
|
Reference in New Issue
Block a user