[llvm] r238399 - [TableGen] Use DefInit::getAsString instead of getDef()->getName(). NFC

Craig Topper craig.topper at gmail.com
Wed May 27 23:38:32 PDT 2015


Author: ctopper
Date: Thu May 28 01:38:32 2015
New Revision: 238399

URL: http://llvm.org/viewvc/llvm-project?rev=238399&view=rev
Log:
[TableGen] Use DefInit::getAsString instead of getDef()->getName(). NFC

Modified:
    llvm/trunk/lib/TableGen/Record.cpp

Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=238399&r1=238398&r2=238399&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Thu May 28 01:38:32 2015
@@ -722,7 +722,7 @@ Init *UnOpInit::Fold(Record *CurRec, Mul
         return LHSs;
 
       if (DefInit *LHSd = dyn_cast<DefInit>(LHS))
-        return StringInit::get(LHSd->getDef()->getName());
+        return StringInit::get(LHSd->getAsString());
 
       if (IntInit *LHSi = dyn_cast<IntInit>(LHS))
         return StringInit::get(LHSi->getAsString());





More information about the llvm-commits mailing list