diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 01:23:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 01:23:44 +0000 |
commit | 445026698ca8f97ee7320464dedbe0d077b32d16 (patch) | |
tree | 278631475ed927dc0db6e36f8d00c9d923ccb1c5 /Driver/clang.cpp | |
parent | 8a5c80913cc90e888da245891c41d314fa12ab19 (diff) |
move llvm backend specific #includes into Backend.cpp instead of Clang.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 70bc5b19ab..d188f37c5a 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -42,7 +42,6 @@ #include "clang/Basic/FileManager.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/TargetInfo.h" -#include "llvm/Pass.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/StringExtras.h" @@ -1238,6 +1237,9 @@ static void InitializeCompileOptions(CompileOptions &Opts) { Opts.CPU = TargetCPU; Opts.Features.insert(Opts.Features.end(), TargetFeatures.begin(), TargetFeatures.end()); + + // Handle -ftime-report. + Opts.TimePasses = TimeReport; } //===----------------------------------------------------------------------===// @@ -1508,10 +1510,6 @@ int main(int argc, char **argv) { if (InputFilenames.empty()) InputFilenames.push_back("-"); - // Handle -ftime-report. - if (TimeReport) - llvm::TimePassesIsEnabled = true; - // Create a file manager object to provide access to and cache the filesystem. FileManager FileMgr; |