[llvm] r232291 - Verifier: Make the raw_ostream constructor argument required
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sat Mar 14 17:46:57 PDT 2015
Author: dexonsmith
Date: Sat Mar 14 19:46:57 2015
New Revision: 232291
URL: http://llvm.org/viewvc/llvm-project?rev=232291&view=rev
Log:
Verifier: Make the raw_ostream constructor argument required
This was passed inconsistently; seems clearer to make it required anyway.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=232291&r1=232290&r2=232291&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Sat Mar 14 19:46:57 2015
@@ -181,7 +181,7 @@ class Verifier : public InstVisitor<Veri
DenseMap<Function *, std::pair<unsigned, unsigned>> FrameEscapeInfo;
public:
- explicit Verifier(raw_ostream &OS = dbgs())
+ explicit Verifier(raw_ostream &OS)
: VerifierSupport(OS), Context(nullptr), PersonalityFn(nullptr),
SawFrameEscape(false) {}
@@ -3112,7 +3112,7 @@ struct VerifierLegacyPass : public Funct
Verifier V;
bool FatalErrors;
- VerifierLegacyPass() : FunctionPass(ID), FatalErrors(true) {
+ VerifierLegacyPass() : FunctionPass(ID), V(dbgs()), FatalErrors(true) {
initializeVerifierLegacyPassPass(*PassRegistry::getPassRegistry());
}
explicit VerifierLegacyPass(bool FatalErrors)
More information about the llvm-commits
mailing list