diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
commit | 10b318bcb39218d2ed525e4862c854bc8d1baf63 (patch) | |
tree | 414ec32f01b35456c581d19ab8214974df2d211c /lib/MC/MCSymbol.cpp | |
parent | 6edec7b34a7f16e0af7fa5947b69805238d6fe6c (diff) | |
download | external_llvm-10b318bcb39218d2ed525e4862c854bc8d1baf63.zip external_llvm-10b318bcb39218d2ed525e4862c854bc8d1baf63.tar.gz external_llvm-10b318bcb39218d2ed525e4862c854bc8d1baf63.tar.bz2 |
now that MCSymbol::print doesn't use it's MAI argument, we can
remove it and change all the code that prints MCSymbols to use
<< instead, which is much simpler and cleaner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSymbol.cpp')
-rw-r--r-- | lib/MC/MCSymbol.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index c20f4d0..3fb1233 100644 --- a/lib/MC/MCSymbol.cpp +++ b/lib/MC/MCSymbol.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCSymbol.h" -#include "llvm/MC/MCAsmInfo.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -39,7 +38,7 @@ static bool NameNeedsQuoting(StringRef Str) { return false; } -void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const { +void MCSymbol::print(raw_ostream &OS) const { // The name for this MCSymbol is required to be a valid target name. However, // some targets support quoting names with funny characters. If the name // contains a funny character, then print it quoted. @@ -52,5 +51,5 @@ void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const { } void MCSymbol::dump() const { - print(dbgs(), 0); + print(dbgs()); } |