[llvm] r304386 - [TableGen] Use StringRef to capture getValueAsString in a couple more places. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 23:56:11 PDT 2017


Author: ctopper
Date: Thu Jun  1 01:56:11 2017
New Revision: 304386

URL: http://llvm.org/viewvc/llvm-project?rev=304386&view=rev
Log:
[TableGen] Use StringRef to capture getValueAsString in a couple more places. NFC

Modified:
    llvm/trunk/utils/TableGen/CodeGenRegisters.h

Modified: llvm/trunk/utils/TableGen/CodeGenRegisters.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenRegisters.h?rev=304386&r1=304385&r2=304386&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenRegisters.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenRegisters.h Thu Jun  1 01:56:11 2017
@@ -308,13 +308,13 @@ namespace llvm {
 
   public:
     unsigned EnumValue;
-    std::string Namespace;
+    StringRef Namespace;
     SmallVector<MVT::SimpleValueType, 4> VTs;
     unsigned SpillSize;
     unsigned SpillAlignment;
     int CopyCost;
     bool Allocatable;
-    std::string AltOrderSelect;
+    StringRef AltOrderSelect;
     uint8_t AllocationPriority;
     /// Contains the combination of the lane masks of all subregisters.
     LaneBitmask LaneMask;




More information about the llvm-commits mailing list