aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
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
commit5cf753c95eea1d1d92c0fa8e93e946901202d6af (patch)
treebbe7dda995dce1094b28d769128fde0db08e37e1 /llvm/utils/TableGen/CodeGenInstruction.cpp
parent6f228b5a5364ba1ab0432c441294ae24b7e85dd3 (diff)
downloadllvm-5cf753c95eea1d1d92c0fa8e93e946901202d6af.zip
llvm-5cf753c95eea1d1d92c0fa8e93e946901202d6af.tar.gz
llvm-5cf753c95eea1d1d92c0fa8e93e946901202d6af.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. llvm-svn: 135669
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index a52ce86c..86a377b 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/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.