aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSymbol.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 03:41:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 03:41:23 +0000
commit1689e0cf55205042b830fdbe3fc5f7b483997334 (patch)
tree43fdece8e9cfa0080b29d40031bb043d860aaf49 /include/llvm/MC/MCSymbol.h
parent2c11624b65a65fe487f335603dc0bf6372a50a89 (diff)
downloadexternal_llvm-1689e0cf55205042b830fdbe3fc5f7b483997334.zip
external_llvm-1689e0cf55205042b830fdbe3fc5f7b483997334.tar.gz
external_llvm-1689e0cf55205042b830fdbe3fc5f7b483997334.tar.bz2
Add MCSymbol::{print, dump}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSymbol.h')
-rw-r--r--include/llvm/MC/MCSymbol.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
index de6dc5f..e857eba 100644
--- a/include/llvm/MC/MCSymbol.h
+++ b/include/llvm/MC/MCSymbol.h
@@ -20,6 +20,7 @@
namespace llvm {
class MCSection;
class MCContext;
+ class raw_ostream;
/// MCSymbol - Instances of this class represent a symbol name in the MC file,
/// and MCSymbols are created and unique'd by the MCContext class.
@@ -61,6 +62,12 @@ namespace llvm {
void setExternal(bool Value) { IsExternal = Value; }
const std::string &getName() const { return Name; }
+
+ /// print - Print the value to the stream \arg OS.
+ void print(raw_ostream &OS) const;
+
+ /// dump - Print the value to stderr.
+ void dump() const;
};
} // end namespace llvm