aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
committerChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
commit684c593d05db0bd277268fc9d8c05bce138c745a (patch)
treebd14333e8ed905f9665b6df0ed1165d19b77acf8 /include/llvm/MC
parent5c5ce5cef4a9f09f5b25e08df1e0dd6c79908c0f (diff)
downloadexternal_llvm-684c593d05db0bd277268fc9d8c05bce138c745a.zip
external_llvm-684c593d05db0bd277268fc9d8c05bce138c745a.tar.gz
external_llvm-684c593d05db0bd277268fc9d8c05bce138c745a.tar.bz2
Thread an MCAsmInfo pointer through the various MC printing APIs,
and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCExpr.h3
-rw-r--r--include/llvm/MC/MCInst.h5
-rw-r--r--include/llvm/MC/MCSymbol.h3
-rw-r--r--include/llvm/MC/MCValue.h2
4 files changed, 8 insertions, 5 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index 9f9f267..859cab5 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -14,6 +14,7 @@
#include "llvm/Support/DataTypes.h"
namespace llvm {
+class MCAsmInfo;
class MCContext;
class MCSymbol;
class MCValue;
@@ -49,7 +50,7 @@ public:
/// @name Utility Methods
/// @{
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;
/// @}
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index 7c1cb13..a6bd45b 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -22,6 +22,7 @@
namespace llvm {
class raw_ostream;
+class MCAsmInfo;
class MCExpr;
/// MCOperand - Instances of this class represent operands of the MCInst class.
@@ -121,7 +122,7 @@ public:
return Op;
}
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;
};
@@ -147,7 +148,7 @@ public:
Operands.push_back(Op);
}
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;
};
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
index 631fa12..5dd7d68 100644
--- a/include/llvm/MC/MCSymbol.h
+++ b/include/llvm/MC/MCSymbol.h
@@ -19,6 +19,7 @@
#include "llvm/Support/DataTypes.h"
namespace llvm {
+ class MCAsmInfo;
class MCSection;
class MCContext;
class raw_ostream;
@@ -106,7 +107,7 @@ namespace llvm {
/// @}
/// print - Print the value to the stream \arg OS.
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
/// dump - Print the value to stderr.
void dump() const;
diff --git a/include/llvm/MC/MCValue.h b/include/llvm/MC/MCValue.h
index 9d71209..62aca6e 100644
--- a/include/llvm/MC/MCValue.h
+++ b/include/llvm/MC/MCValue.h
@@ -55,7 +55,7 @@ public:
const MCSection *getAssociatedSection() const;
/// print - Print the value to the stream \arg OS.
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
/// dump - Print the value to stderr.
void dump() const;