summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2010-06-25 00:02:05 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2010-06-25 00:02:05 +0000
commitceebdf1fc6cf0dd384de95c9944c1f7d9811d9ad (patch)
treebd10f6dad990103e283adff7e7f08ecee86cb459 /clang/lib/Basic/Targets.cpp
parent889ab7d15888f64826009cded172f0dced5b590c (diff)
downloadbcm5719-llvm-ceebdf1fc6cf0dd384de95c9944c1f7d9811d9ad.tar.gz
bcm5719-llvm-ceebdf1fc6cf0dd384de95c9944c1f7d9811d9ad.zip
Fixed another double-char in PPC-specific asm constraints.
llvm-svn: 106812
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 367d562f4a2..8660f2b015a 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -485,12 +485,16 @@ public:
// asm ("st %1,%0" : "=m" (mem) : "r" (val));
// is not. Use es rather than m if you don't want the base
// register to be updated.
- case 'es':// A “stable” memory operand; that is, one which does not
+ case 'e':
+ if (Name[1] != 's')
+ return false;
+ // es: A “stable” memory operand; that is, one which does not
// include any automodification of the base register. Unlike
// `m', this constraint can be used in asm statements that
// might access the operand several times, or that might not
- // access it at all.
+ // access it at all.
Info.setAllowsMemory();
+ Name++; // Skip over 'e'.
break;
case 'Q': // Memory operand that is an offset from a register (it is
// usually better to use `m' or `es' in asm statements)
OpenPOWER on IntegriCloud