From 487e527fcf1c86bb00ee9eb9c13054378930a1e6 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 5 Feb 2008 23:30:20 +0000 Subject: [PATCH] Handle the memory clobber. llvm-svn: 46780 --- clang/Basic/TargetInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/Basic/TargetInfo.cpp b/clang/Basic/TargetInfo.cpp index 77efe604baa2..fc6976af41fd 100644 --- a/clang/Basic/TargetInfo.cpp +++ b/clang/Basic/TargetInfo.cpp @@ -328,6 +328,9 @@ const char *TargetInfo::getNormalizedGCCRegisterName(const char *Name) const { assert(isValidGCCRegisterName(Name) && "Invalid register passed in"); + if (strcmp(Name, "memory") == 0) + return "~{memory}"; + const char * const *Names; unsigned NumNames;