Made nil resolve as (id)0 and not be looked up

(which regularly conflicts with existing symbols
in Objective-C).

llvm-svn: 157758
This commit is contained in:
Sean Callanan 2012-05-31 17:49:31 +00:00
parent 4f203ea34b
commit 0c5aabc2c7
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
wrap_stream.Printf("%s \n"
"#undef NULL \n"
"#define NULL 0 \n"
"#undef nil \n"
"#define nil (id)0 \n"
"typedef unsigned short unichar;\n"
"void \n"
"%s(void *$__lldb_arg) \n"
@ -51,6 +53,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
wrap_stream.Printf("%s \n"
"#undef NULL \n"
"#define NULL 0 \n"
"#undef nil \n"
"#define nil (id)0 \n"
"typedef unsigned short unichar; \n"
"void \n"
"$__lldb_class::%s(void *$__lldb_arg) %s\n"
@ -68,6 +72,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
wrap_stream.Printf("%s \n"
"#undef NULL \n"
"#define NULL 0 \n"
"#undef nil \n"
"#define nil (id)0 \n"
"typedef unsigned short unichar; \n"
"@interface $__lldb_objc_class ($__lldb_category) \n"
"+(void)%s:(void *)$__lldb_arg; \n"
@ -88,6 +94,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
wrap_stream.Printf("%s \n"
"#undef NULL \n"
"#define NULL 0 \n"
"#undef nil \n"
"#define nil (id)0 \n"
"typedef unsigned short unichar; \n"
"@interface $__lldb_objc_class ($__lldb_category) \n"
"-(void)%s:(void *)$__lldb_arg; \n"