Skip to content

Commit 910f05d

Browse files
committedNov 29, 2014
DebugIR: Delete -debug-ir
llvm-svn: 222945
1 parent ac5e3a3 commit 910f05d

File tree

19 files changed

+1
-1465
lines changed

19 files changed

+1
-1465
lines changed
 

‎llvm/include/llvm/InitializePasses.h

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ void initializeDAEPass(PassRegistry&);
106106
void initializeDAHPass(PassRegistry&);
107107
void initializeDCEPass(PassRegistry&);
108108
void initializeDSEPass(PassRegistry&);
109-
void initializeDebugIRPass(PassRegistry&);
110109
void initializeDebugInfoVerifierLegacyPassPass(PassRegistry &);
111110
void initializeDeadInstEliminationPass(PassRegistry&);
112111
void initializeDeadMachineInstructionElimPass(PassRegistry&);

‎llvm/include/llvm/Transforms/Instrumentation.h

-31
Original file line numberDiff line numberDiff line change
@@ -93,37 +93,6 @@ inline ModulePass *createDataFlowSanitizerPassForJIT(StringRef ABIListFile =
9393
// checking on loads, stores, and other memory intrinsics.
9494
FunctionPass *createBoundsCheckingPass();
9595

96-
/// createDebugIRPass - Enable interactive stepping through LLVM IR in LLDB (or
97-
/// GDB) and generate a file with the LLVM IR to be
98-
/// displayed in the debugger.
99-
///
100-
/// Existing debug metadata is preserved (but may be modified) in order to allow
101-
/// accessing variables in the original source. The line table and file
102-
/// information is modified to correspond to the lines in the LLVM IR. If
103-
/// Filename and Directory are empty, a file name is generated based on existing
104-
/// debug information. If no debug information is available, a temporary file
105-
/// name is generated.
106-
///
107-
/// @param HideDebugIntrinsics Omit debug intrinsics in emitted IR source file.
108-
/// @param HideDebugMetadata Omit debug metadata in emitted IR source file.
109-
/// @param Directory Embed this directory in the debug information.
110-
/// @param Filename Embed this file name in the debug information.
111-
ModulePass *createDebugIRPass(bool HideDebugIntrinsics,
112-
bool HideDebugMetadata,
113-
StringRef Directory = StringRef(),
114-
StringRef Filename = StringRef());
115-
116-
/// createDebugIRPass - Enable interactive stepping through LLVM IR in LLDB
117-
/// (or GDB) with an existing IR file on disk. When creating
118-
/// a DebugIR pass with this function, no source file is
119-
/// output to disk and the existing one is unmodified. Debug
120-
/// metadata in the Module is created/updated to point to
121-
/// the existing textual IR file on disk.
122-
/// NOTE: If the IR file to be debugged is not on disk, use the version of this
123-
/// function with parameters in order to generate the file that will be
124-
/// seen by the debugger.
125-
ModulePass *createDebugIRPass();
126-
12796
} // End llvm namespace
12897

12998
#endif

‎llvm/lib/Transforms/Instrumentation/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ add_llvm_library(LLVMInstrumentation
22
AddressSanitizer.cpp
33
BoundsChecking.cpp
44
DataFlowSanitizer.cpp
5-
DebugIR.cpp
65
GCOVProfiling.cpp
76
MemorySanitizer.cpp
87
Instrumentation.cpp

‎llvm/lib/Transforms/Instrumentation/DebugIR.cpp

-617
This file was deleted.

‎llvm/lib/Transforms/Instrumentation/DebugIR.h

-98
This file was deleted.

‎llvm/test/Transforms/DebugIR/crash.ll

-42
This file was deleted.

‎llvm/test/Transforms/DebugIR/exception.ll

-127
This file was deleted.

‎llvm/test/Transforms/DebugIR/function.ll

-51
This file was deleted.

‎llvm/test/Transforms/DebugIR/simple-addrspace.ll

-11
This file was deleted.

‎llvm/test/Transforms/DebugIR/simple.ll

-25
This file was deleted.

‎llvm/test/Transforms/DebugIR/struct.ll

-24
This file was deleted.

‎llvm/test/Transforms/DebugIR/vector.ll

-93
This file was deleted.

‎llvm/tools/lli/lli.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ namespace {
7474
cl::desc("Force interpretation: disable JIT"),
7575
cl::init(false));
7676

77-
cl::opt<bool> DebugIR(
78-
"debug-ir", cl::desc("Generate debug information to allow debugging IR."),
79-
cl::init(false));
80-
8177
// The MCJIT supports building for a target address space separate from
8278
// the JIT compilation process. Use a forked process and a copying
8379
// memory manager with IPC to execute using this functionality.
@@ -414,11 +410,6 @@ int main(int argc, char **argv, char * const *envp) {
414410
}
415411
}
416412

417-
if (DebugIR) {
418-
ModulePass *DebugIRPass = createDebugIRPass();
419-
DebugIRPass->runOnModule(*Mod);
420-
}
421-
422413
std::string ErrorMsg;
423414
EngineBuilder builder(std::move(Owner));
424415
builder.setMArch(MArch);

‎llvm/tools/opt/opt.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ int main(int argc, char **argv) {
307307
// Initialize passes
308308
PassRegistry &Registry = *PassRegistry::getPassRegistry();
309309
initializeCore(Registry);
310-
initializeDebugIRPass(Registry);
311310
initializeScalarOpts(Registry);
312311
initializeObjCARCOpts(Registry);
313312
initializeVectorization(Registry);
-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
add_subdirectory(DebugIR)
21
add_subdirectory(Utils)

‎llvm/unittests/Transforms/DebugIR/CMakeLists.txt

-9
This file was deleted.

‎llvm/unittests/Transforms/DebugIR/DebugIR.cpp

-308
This file was deleted.

‎llvm/unittests/Transforms/DebugIR/Makefile

-15
This file was deleted.

‎llvm/unittests/Transforms/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
LEVEL = ../..
1111

12-
PARALLEL_DIRS = DebugIR Utils
12+
PARALLEL_DIRS = Utils
1313

1414
include $(LEVEL)/Makefile.common
1515

0 commit comments

Comments
 (0)
Please sign in to comment.