diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-05-30 00:17:12 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-05-30 00:17:12 +0000 |
commit | 33e5188c270fbd5ccce4ea4656f75c95ec68cfaf (patch) | |
tree | eebfb851efa47d7d5f7ecd7054a2fba96afdf999 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 45601d1742d159c261f7b255e00e72e55805b792 (diff) | |
download | llvm-33e5188c270fbd5ccce4ea4656f75c95ec68cfaf.zip llvm-33e5188c270fbd5ccce4ea4656f75c95ec68cfaf.tar.gz llvm-33e5188c270fbd5ccce4ea4656f75c95ec68cfaf.tar.bz2 |
Add an insertPass API to TargetPassConfig. <rdar://problem/11498613>
Besides adding the new insertPass function, this patch uses it to
enhance the existing -print-machineinstrs so that the MachineInstrs
after a specific pass can be printed.
Patch by Bin Zeng!
llvm-svn: 157655
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index a81bb5c..6548713 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -66,6 +66,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeUnreachableMachineBlockElimPass(Registry); initializeVirtRegMapPass(Registry); initializeLowerIntrinsicsPass(Registry); + initializeMachineFunctionPrinterPassPass(Registry); } void LLVMInitializeCodeGen(LLVMPassRegistryRef R) { |