aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gccas/gccas.cpp3
-rw-r--r--tools/gccld/GenerateCode.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 356bc8216a..40053303db 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -165,6 +165,9 @@ int main(int argc, char **argv) {
//
AddConfiguredTransformationPasses(Passes);
+ // Make sure everything is still good.
+ Passes.add(createVerifierPass());
+
// Write bytecode to file...
Passes.add(new WriteBytecodePass(Out));
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp
index 6fd30c8d87..d41a1f15f2 100644
--- a/tools/gccld/GenerateCode.cpp
+++ b/tools/gccld/GenerateCode.cpp
@@ -125,6 +125,9 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) {
addPass(Passes, createGlobalDCEPass());
}
+ // Make sure everything is still good.
+ Passes.add(createVerifierPass());
+
// Add the pass that writes bytecode to the output file...
addPass(Passes, new WriteBytecodePass(Out));