aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-21 06:21:31 +0000
committerChris Lattner <sabre@nondot.org>2011-07-21 06:21:31 +0000
commitc30a38f34bdfecb99ce49e3ffa479039c9bf0209 (patch)
treeb67b287ea26fb1e9ec63d50cfc1ad665ab506414 /utils/TableGen
parentdbd4fe2b0ada8014c2c8e042651de5799a1d4c5d (diff)
downloadexternal_llvm-c30a38f34bdfecb99ce49e3ffa479039c9bf0209.zip
external_llvm-c30a38f34bdfecb99ce49e3ffa479039c9bf0209.tar.gz
external_llvm-c30a38f34bdfecb99ce49e3ffa479039c9bf0209.tar.bz2
move tier out of an anonymous namespace, it doesn't make sense
to for it to be an an anon namespace and be in a header. Eliminate some extraenous uses of tie. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/CodeGenInstruction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp
index a52ce86c..86a377b 100644
--- a/utils/TableGen/CodeGenInstruction.cpp
+++ b/utils/TableGen/CodeGenInstruction.cpp
@@ -267,8 +267,9 @@ static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops) {
void CGIOperandList::ProcessDisableEncoding(std::string DisableEncoding) {
while (1) {
- std::string OpName;
- tie(OpName, DisableEncoding) = getToken(DisableEncoding, " ,\t");
+ std::pair<StringRef, StringRef> P = getToken(DisableEncoding, " ,\t");
+ std::string OpName = P.first;
+ DisableEncoding = P.second;
if (OpName.empty()) break;
// Figure out which operand this is.