summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-31 00:45:01 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-31 00:45:01 +0000
commit6f5f001fdc20c0f35d277e1219845d04d978c4cd (patch)
tree3687de325e04e1784d9d00c97f1e02ab40d8a075 /llvm/utils/TableGen/IntrinsicEmitter.cpp
parent10d1ff64fecca21ba3dc25ce51b567383059dae0 (diff)
downloadbcm5719-llvm-6f5f001fdc20c0f35d277e1219845d04d978c4cd.tar.gz
bcm5719-llvm-6f5f001fdc20c0f35d277e1219845d04d978c4cd.zip
TableGen: use fully qualified name for StringLiteral
Use the qualified name for StringLiteral (llvm::StringLiteral) when generating the sources. This is needed as the generated files may be used out-of-tree (e.g. swift) where you may not have a `using namespace llvm;` resulting in an undefined lookup. llvm-svn: 293577
Diffstat (limited to 'llvm/utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index 0e4d1c7b8ae..eb30ddcb280 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -133,13 +133,13 @@ void IntrinsicEmitter::EmitTargetInfo(const CodeGenIntrinsicTable &Ints,
OS << "// Target mapping\n";
OS << "#ifdef GET_INTRINSIC_TARGET_DATA\n";
OS << "struct IntrinsicTargetInfo {\n"
- << " StringLiteral Name;\n"
+ << " llvm::StringLiteral Name;\n"
<< " size_t Offset;\n"
<< " size_t Count;\n"
<< "};\n";
OS << "static constexpr IntrinsicTargetInfo TargetInfos[] = {\n";
for (auto Target : Ints.Targets)
- OS << " {StringLiteral(\"" << Target.Name << "\"), " << Target.Offset
+ OS << " {llvm::StringLiteral(\"" << Target.Name << "\"), " << Target.Offset
<< ", " << Target.Count << "},\n";
OS << "};\n";
OS << "#endif\n\n";
OpenPOWER on IntegriCloud