[cfe-commits] r46780 - /cfe/trunk/Basic/TargetInfo.cpp

Anders Carlsson andersca at mac.com
Tue Feb 5 15:30:20 PST 2008


Author: andersca
Date: Tue Feb  5 17:30:20 2008
New Revision: 46780

URL: http://llvm.org/viewvc/llvm-project?rev=46780&view=rev
Log:
Handle the memory clobber.

Modified:
    cfe/trunk/Basic/TargetInfo.cpp

Modified: cfe/trunk/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/TargetInfo.cpp?rev=46780&r1=46779&r2=46780&view=diff

==============================================================================
--- cfe/trunk/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/Basic/TargetInfo.cpp Tue Feb  5 17:30:20 2008
@@ -328,6 +328,9 @@
 {
   assert(isValidGCCRegisterName(Name) && "Invalid register passed in");
   
+  if (strcmp(Name, "memory") == 0)
+    return "~{memory}";
+    
   const char * const *Names;
   unsigned NumNames;
 





More information about the cfe-commits mailing list