mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
give Mangler access to TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,6 +25,7 @@ class GlobalValue;
|
||||
template <typename T> class SmallVectorImpl;
|
||||
class MCContext;
|
||||
class MCSymbol;
|
||||
class TargetData;
|
||||
|
||||
class Mangler {
|
||||
public:
|
||||
@@ -36,6 +37,7 @@ public:
|
||||
|
||||
private:
|
||||
MCContext &Context;
|
||||
const TargetData &TD;
|
||||
|
||||
/// 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
|
||||
@@ -48,7 +50,8 @@ private:
|
||||
unsigned NextAnonGlobalID;
|
||||
|
||||
public:
|
||||
Mangler(MCContext &context) : Context(context), NextAnonGlobalID(1) {}
|
||||
Mangler(MCContext &context, const TargetData &td)
|
||||
: Context(context), TD(td), NextAnonGlobalID(1) {}
|
||||
|
||||
/// getSymbol - Return the MCSymbol for the specified global value. This
|
||||
/// symbol is the main label that is the address of the global.
|
||||
|
Reference in New Issue
Block a user