diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-03-22 02:20:34 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-03-22 02:20:34 +0000 |
commit | f0b0f1f9d97f4cf4d2f00c60fbc3d377a93465f8 (patch) | |
tree | 7104834d0bd14f662aab286b7c40551c1688cfd7 /lib/Support | |
parent | d3107fbc54a5b5156f0aabc8788724f1469eb9df (diff) | |
download | external_llvm-f0b0f1f9d97f4cf4d2f00c60fbc3d377a93465f8.zip external_llvm-f0b0f1f9d97f4cf4d2f00c60fbc3d377a93465f8.tar.gz external_llvm-f0b0f1f9d97f4cf4d2f00c60fbc3d377a93465f8.tar.bz2 |
Revert r177543: Add timing of the IR parsing code with a new
-time-ir-parsing flag
This breaks the layering of the Support library. We can't add an
implementation side to IRReader because it refers directly to entities
only accessible as part of the IR, AsmParser, and BitcodeReader
libraries. It can only be used in a context where all of those libraries
will be available.
We'll need to find some other way to get this functionality, and
hopefully solve the long-standing layering problem of IRReader.h...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/Support/IRReader.cpp | 21 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index f661249..5ba69fc 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -27,7 +27,6 @@ add_llvm_library(LLVMSupport IntEqClasses.cpp IntervalMap.cpp IntrusiveRefCntPtr.cpp - IRReader.cpp IsInf.cpp IsNAN.cpp Locale.cpp diff --git a/lib/Support/IRReader.cpp b/lib/Support/IRReader.cpp deleted file mode 100644 index 1dc56dd..0000000 --- a/lib/Support/IRReader.cpp +++ /dev/null @@ -1,21 +0,0 @@ -//===- IRReader.cpp - Reader for LLVM IR files ----------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/Support/CommandLine.h" -#include "llvm/Support/IRReader.h" -using namespace llvm; - -const char *llvm::TimeIRParsingGroupName = "LLVM IR Parsing"; -const char *llvm::TimeIRParsingName = "Parse IR"; - -bool llvm::TimeIRParsingIsEnabled = false; -static cl::opt<bool,true> -EnableTimeIRParsing("time-ir-parsing", cl::location(TimeIRParsingIsEnabled), - cl::desc("Measure the time IR parsing takes")); - |