From d9beeaf1f1ff65ae9b13504db09043686d112bbd Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 11 Nov 2009 07:26:02 +0000 Subject: [PATCH] Inline some trivial functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86815 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-cc/clang-cc.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index cf1fde97c2..d377f80c40 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -428,15 +428,6 @@ static llvm::cl::opt 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;