[cfe-commits] r134811 - in /cfe/trunk: test/CodeGen/asm-errors.c tools/driver/cc1_main.cpp

Evan Cheng evan.cheng at apple.com
Sat Jul 9 00:32:07 PDT 2011


Author: evancheng
Date: Sat Jul  9 02:32:07 2011
New Revision: 134811

URL: http://llvm.org/viewvc/llvm-project?rev=134811&view=rev
Log:
cc1 must initialize MC subtarget infos for inline asm parsing. Re-enable asm-errors.c

Modified:
    cfe/trunk/test/CodeGen/asm-errors.c
    cfe/trunk/tools/driver/cc1_main.cpp

Modified: cfe/trunk/test/CodeGen/asm-errors.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-errors.c?rev=134811&r1=134810&r2=134811&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/asm-errors.c (original)
+++ cfe/trunk/test/CodeGen/asm-errors.c Sat Jul  9 02:32:07 2011
@@ -1,8 +1,6 @@
 // REQUIRES: x86-registered-target
-
-// RUN: true
-// UN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
-// UN: FileCheck %s < %t
+// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
+// RUN: FileCheck %s < %t
 
 int test1(int X) {
 // CHECK: error: invalid instruction mnemonic 'abc'

Modified: cfe/trunk/tools/driver/cc1_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=134811&r1=134810&r2=134811&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1_main.cpp Sat Jul  9 02:32:07 2011
@@ -126,6 +126,7 @@
 
   // Initialize targets first, so that --version shows registered targets.
   llvm::InitializeAllTargets();
+  llvm::InitializeAllMCSubtargetInfos();
   llvm::InitializeAllAsmPrinters();
   llvm::InitializeAllAsmParsers();
 





More information about the cfe-commits mailing list