[llvm] r293528 - [IR] Remove global constructor from Function.cpp

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 10:49:24 PST 2017


Author: d0k
Date: Mon Jan 30 12:49:24 2017
New Revision: 293528

URL: http://llvm.org/viewvc/llvm-project?rev=293528&view=rev
Log:
[IR] Remove global constructor from Function.cpp

Modified:
    llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp?rev=293528&r1=293527&r2=293528&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Mon Jan 30 12:49:24 2017
@@ -133,11 +133,11 @@ void IntrinsicEmitter::EmitTargetInfo(co
   OS << "// Target mapping\n";
   OS << "#ifdef GET_INTRINSIC_TARGET_DATA\n";
   OS << "struct IntrinsicTargetInfo {\n"
-     << "  StringRef Name;\n"
+     << "  StringLiteral Name;\n"
      << "  size_t Offset;\n"
      << "  size_t Count;\n"
      << "};\n";
-  OS << "static const IntrinsicTargetInfo TargetInfos[] = {\n";
+  OS << "static constexpr IntrinsicTargetInfo TargetInfos[] = {\n";
   for (auto Target : Ints.Targets)
     OS << "  {\"" << Target.Name << "\", " << Target.Offset << ", "
        << Target.Count << "},\n";




More information about the llvm-commits mailing list