[PATCH] MC: Allow targets to stop symbol name quoting

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Thu Apr 30 12:51:15 PDT 2015


================
Comment at: lib/MC/MCSymbol.cpp:29
@@ -48,3 +28,3 @@
 
-void MCSymbol::print(raw_ostream &OS) const {
+void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
   // The name for this MCSymbol is required to be a valid target name.  However,
----------------
Can you pass a "const MCAsmInfo &" ?

For the debug uses (i.e., dump), they can just say

OS << Symbol->getName()

instead of

Symbol->print(OS, nullptr);

http://reviews.llvm.org/D9207

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list