diff options
author | Craig Topper <craig.topper@intel.com> | 2017-07-07 06:22:35 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-07-07 06:22:35 +0000 |
commit | 86a9aee88f07c01c82d15af67ce41806493ebcba (patch) | |
tree | 4607ac50a54dcd6d91102023ad8538b41071cde6 /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | 3d0463ff821ba42a46f5d7d186c7a6f8cccfeafa (diff) | |
download | llvm-86a9aee88f07c01c82d15af67ce41806493ebcba.zip llvm-86a9aee88f07c01c82d15af67ce41806493ebcba.tar.gz llvm-86a9aee88f07c01c82d15af67ce41806493ebcba.tar.bz2 |
[TableGen] Use StringRef instead of std::string for CodeGenInstruction namespace. NFC
llvm-svn: 307362
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index eb277f3..58df3ce 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -207,7 +207,7 @@ const StringRef CodeGenTarget::getName() const { return TargetRec->getName(); } -std::string CodeGenTarget::getInstNamespace() const { +StringRef CodeGenTarget::getInstNamespace() const { for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) { // Make sure not to pick up "TargetOpcode" by accidentally getting // the namespace off the PHI instruction or something. |