diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-04-23 23:34:51 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-04-23 23:34:51 +0000 |
commit | 9897e03b11686b8a11daa818e9c5c055496ae9dd (patch) | |
tree | 330d5e3f9e66f374628ce20bfd2ad00607d79b4b /llvm/lib/MC | |
parent | a48b8660680722be531d073d0abab3f2c07d1699 (diff) | |
download | bcm5719-llvm-9897e03b11686b8a11daa818e9c5c055496ae9dd.tar.gz bcm5719-llvm-9897e03b11686b8a11daa818e9c5c055496ae9dd.zip |
Revert accidentally committed "MC: Allow targets to stop symbol name quoting"
llvm-svn: 235672
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/MC/MCSymbol.cpp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index f2d3b2a1855..bad257a961b 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -50,7 +50,6 @@ MCAsmInfo::MCAsmInfo() { Code64Directive = ".code64"; AssemblerDialect = 0; AllowAtInName = false; - NoSymbolNameQuoting = false; UseDataRegionDirectives = false; ZeroDirective = "\t.zero\t"; AsciiDirective = "\t.ascii\t"; diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index a43bdc7bfa2..5f8e3c11de3 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -125,8 +125,7 @@ MCSymbol *MCContext::getOrCreateSectionSymbol(const MCSectionELF &Section) { } auto NameIter = UsedNames.insert(std::make_pair(Name, true)).first; - Sym = new (*this) MCSymbol(NameIter->getKey(), /*isTemporary*/ false, - MAI->noSymbolNameQuoting()); + Sym = new (*this) MCSymbol(NameIter->getKey(), /*isTemporary*/ false); if (!OldSym) OldSym = Sym; @@ -164,8 +163,7 @@ MCSymbol *MCContext::CreateSymbol(StringRef Name, bool AlwaysAddSuffix) { // Ok, we found a name. Have the MCSymbol object itself refer to the copy // of the string that is embedded in the UsedNames entry. MCSymbol *Result = - new (*this) MCSymbol(NameEntry.first->getKey(), IsTemporary, - MAI->noSymbolNameQuoting()); + new (*this) MCSymbol(NameEntry.first->getKey(), IsTemporary); return Result; } assert(IsTemporary && "Cannot rename non-temporary symbols"); diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp index 346a9260709..ccb9f8def9e 100644 --- a/llvm/lib/MC/MCSymbol.cpp +++ b/llvm/lib/MC/MCSymbol.cpp @@ -51,7 +51,7 @@ void MCSymbol::print(raw_ostream &OS) const { // some targets support quoting names with funny characters. If the name // contains a funny character, then print it quoted. StringRef Name = getName(); - if (NoQuoting || !NameNeedsQuoting(Name)) { + if (!NameNeedsQuoting(Name)) { OS << Name; return; } |