зеркало из https://github.com/microsoft/clang-1.git
Inline some trivial functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
de7d800756
Коммит
d9beeaf1f1
|
@ -428,15 +428,6 @@ static llvm::cl::opt<bool>
|
|||
PThread("pthread", llvm::cl::desc("Support POSIX threads in generated code"),
|
||||
llvm::cl::init(false));
|
||||
|
||||
static void InitializeCOptions(LangOptions &Options) {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
static void InitializeObjCOptions(LangOptions &Options) {
|
||||
Options.ObjC1 = Options.ObjC2 = 1;
|
||||
}
|
||||
|
||||
|
||||
static void InitializeLangOptions(LangOptions &Options, LangKind LK){
|
||||
bool NoPreprocess = false;
|
||||
|
||||
|
@ -449,7 +440,7 @@ static void InitializeLangOptions(LangOptions &Options, LangKind LK){
|
|||
NoPreprocess = true;
|
||||
// FALLTHROUGH
|
||||
case langkind_c:
|
||||
InitializeCOptions(Options);
|
||||
// Do nothing.
|
||||
break;
|
||||
case langkind_cxx_cpp:
|
||||
NoPreprocess = true;
|
||||
|
@ -461,7 +452,7 @@ static void InitializeLangOptions(LangOptions &Options, LangKind LK){
|
|||
NoPreprocess = true;
|
||||
// FALLTHROUGH
|
||||
case langkind_objc:
|
||||
InitializeObjCOptions(Options);
|
||||
Options.ObjC1 = Options.ObjC2 = 1;
|
||||
break;
|
||||
case langkind_objcxx_cpp:
|
||||
NoPreprocess = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче