[llvm-commits] [llvm-gcc-4.2] r127190 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
Bill Wendling
isanbard at gmail.com
Mon Mar 7 15:20:37 PST 2011
Author: void
Date: Mon Mar 7 17:20:37 2011
New Revision: 127190
URL: http://llvm.org/viewvc/llvm-project?rev=127190&view=rev
Log:
Simplification that Fritz pointed out.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h?rev=127190&r1=127189&r2=127190&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h Mon Mar 7 17:20:37 2011
@@ -45,10 +45,9 @@
/* For parameters to an asm, check the constraint and use X86_mmx if an MMX
register is called for. "y" means an MMX register. */
-#define LLVM_ADJUST_MMX_INLINE_PARAMETER_TYPE(Constraint, LLVMTy) \
- ((TARGET_MMX && \
- (StringRef(Constraint).equals(StringRef(std::string("y"))) || \
- StringRef(Constraint).equals(StringRef(std::string("&y"))))) ? \
+#define LLVM_ADJUST_MMX_INLINE_PARAMETER_TYPE(Constraint, LLVMTy) \
+ ((TARGET_MMX && \
+ (StringRef(Constraint) == "y" || StringRef(Constraint) == "&y")) ? \
Type::getX86_MMXTy(Context) : LLVMTy)
/* LLVM specific stuff for supporting calling convention output */
More information about the llvm-commits
mailing list