diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-02 18:53:47 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-02 18:53:47 +0000 |
commit | 48c1bc2ace6481d3272ab5c18e1f19352c563be8 (patch) | |
tree | 415c0f43e5c715afbe4b5209c9da1fadbe232080 /utils/TableGen/CodeGenInstruction.cpp | |
parent | 46f7a5ec1af7e991f5dae6625b0d187ab62ad511 (diff) | |
download | llvm-48c1bc2ace6481d3272ab5c18e1f19352c563be8.tar.gz llvm-48c1bc2ace6481d3272ab5c18e1f19352c563be8.tar.bz2 llvm-48c1bc2ace6481d3272ab5c18e1f19352c563be8.tar.xz |
Handle some 64-bit atomics on x86-32, some of the time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp index 37c2069ec7..2a5b0bf99b 100644 --- a/utils/TableGen/CodeGenInstruction.cpp +++ b/utils/TableGen/CodeGenInstruction.cpp @@ -21,7 +21,8 @@ static void ParseConstraint(const std::string &CStr, CodeGenInstruction *I) { // FIXME: Only supports TIED_TO for now. std::string::size_type pos = CStr.find_first_of('='); assert(pos != std::string::npos && "Unrecognized constraint"); - std::string Name = CStr.substr(0, pos); + std::string::size_type start = CStr.find_first_not_of(" \t"); + std::string Name = CStr.substr(start, pos); // TIED_TO: $src1 = $dst std::string::size_type wpos = Name.find_first_of(" \t"); |