diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-07-22 05:19:32 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-07-22 05:19:32 +0000 |
commit | 9b4df49d39ad9cb634ecd2e6547b58ee07436120 (patch) | |
tree | cfe244b191c29703f6069ae47165b7d346859638 /lib/Transforms | |
parent | 956994c2edeccaeab708983257ea62d622d72dc2 (diff) | |
download | external_llvm-9b4df49d39ad9cb634ecd2e6547b58ee07436120.zip external_llvm-9b4df49d39ad9cb634ecd2e6547b58ee07436120.tar.gz external_llvm-9b4df49d39ad9cb634ecd2e6547b58ee07436120.tar.bz2 |
Move the initialization of the bounds checking pass. The pass itself
moved earlier. This fixes some layering issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Instrumentation/Instrumentation.cpp | 5 | ||||
-rw-r--r-- | lib/Transforms/Scalar/Scalar.cpp | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/Instrumentation.cpp b/lib/Transforms/Instrumentation/Instrumentation.cpp index c7266e2..1e0b4a3 100644 --- a/lib/Transforms/Instrumentation/Instrumentation.cpp +++ b/lib/Transforms/Instrumentation/Instrumentation.cpp @@ -20,11 +20,12 @@ using namespace llvm; /// initializeInstrumentation - Initialize all passes in the TransformUtils /// library. void llvm::initializeInstrumentation(PassRegistry &Registry) { + initializeAddressSanitizerPass(Registry); + initializeBoundsCheckingPass(Registry); initializeEdgeProfilerPass(Registry); + initializeGCOVProfilerPass(Registry); initializeOptimalEdgeProfilerPass(Registry); initializePathProfilerPass(Registry); - initializeGCOVProfilerPass(Registry); - initializeAddressSanitizerPass(Registry); initializeThreadSanitizerPass(Registry); } diff --git a/lib/Transforms/Scalar/Scalar.cpp b/lib/Transforms/Scalar/Scalar.cpp index 49970d4..7d65bcc 100644 --- a/lib/Transforms/Scalar/Scalar.cpp +++ b/lib/Transforms/Scalar/Scalar.cpp @@ -29,7 +29,6 @@ using namespace llvm; void llvm::initializeScalarOpts(PassRegistry &Registry) { initializeADCEPass(Registry); initializeBlockPlacementPass(Registry); - initializeBoundsCheckingPass(Registry); initializeCodeGenPreparePass(Registry); initializeConstantPropagationPass(Registry); initializeCorrelatedValuePropagationPass(Registry); |