[cfe-commits] r86815 - /cfe/trunk/tools/clang-cc/clang-cc.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 10 23:26:03 PST 2009
Author: ddunbar
Date: Wed Nov 11 01:26:02 2009
New Revision: 86815
URL: http://llvm.org/viewvc/llvm-project?rev=86815&view=rev
Log:
Inline some trivial functions.
Modified:
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=86815&r1=86814&r2=86815&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Wed Nov 11 01:26:02 2009
@@ -428,15 +428,6 @@
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 @@
NoPreprocess = true;
// FALLTHROUGH
case langkind_c:
- InitializeCOptions(Options);
+ // Do nothing.
break;
case langkind_cxx_cpp:
NoPreprocess = true;
@@ -461,7 +452,7 @@
NoPreprocess = true;
// FALLTHROUGH
case langkind_objc:
- InitializeObjCOptions(Options);
+ Options.ObjC1 = Options.ObjC2 = 1;
break;
case langkind_objcxx_cpp:
NoPreprocess = true;
More information about the cfe-commits
mailing list