Remove explicit uses of -emit-llvm, the test infrastructure adds it

automatically.  Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).  Yes, dragonegg supports objective-c (poorly though).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2010-11-25 21:46:07 +00:00
parent d1627e331f
commit ce60e8423e
10 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s -o /dev/null
// RUN: %llvmgcc -S %s -o /dev/null
@interface B
-(int)bar;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s -fobjc-gc -o /dev/null
// RUN: %llvmgcc -S %s -fobjc-gc -o /dev/null
typedef int NSInteger;
typedef struct _NSRect {
int origin;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
// RUN: %llvmgcc -S -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
// XFAIL: *
// XTARGET: darwin
@class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -x objective-c -c %s -o /dev/null
// RUN: %llvmgcc -x objective-c -S %s -o /dev/null
@protocol O
@end
@interface O < O > {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -x objective-c -c %s -o /dev/null -fobjc-gc
// RUN: %llvmgcc -x objective-c -S %s -o /dev/null -fobjc-gc
// rdar://5541393
typedef unsigned int NSUInteger;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null
// RUN: %llvmgcc -w -x objective-c -S %s -o /dev/null
@interface Object {
@public

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -x objective-c -m64 -c %s -o /dev/null
// RUN: %llvmgcc -x objective-c -m64 -S %s -o /dev/null
@interface A
@end

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s -o /dev/null
// RUN: %llvmgcc -S %s -o /dev/null
// rdar://6394879
@interface bork

View File

@ -1,4 +1,4 @@
/* RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null -pedantic-errors
/* RUN: %llvmgcc -w -x objective-c -S %s -o /dev/null -pedantic-errors
rdar://6551276 */
void foo(const unsigned short *);

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S %s -fobjc-abi-version=2 -emit-llvm -o %t
// RUN: %llvmgcc -S %s -fobjc-abi-version=2 -o %t
// RUN: grep {OBJC_CLASS_\\\$_A.*section.*__DATA, __objc_data.*align} %t
// XTARGET: darwin