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 | 867d549fcedfac3116451129ee2f173c376cb2e4 (patch) | |
tree | 66824a1c5b1bb0c8daab071fc2baf5e22eb6c8af /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | dd9b2d16f91a4d4d2182f840694d35ccf700ca4e (diff) | |
download | bcm5719-llvm-867d549fcedfac3116451129ee2f173c376cb2e4.tar.gz bcm5719-llvm-867d549fcedfac3116451129ee2f173c376cb2e4.zip |
Handle some 64-bit atomics on x86-32, some of the time.
llvm-svn: 56963
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index 37c2069ec72..2a5b0bf99b4 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/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"); |