[llvm] r356994 - Moved body of methods dump to .cpp file to fix compilation when modules

Mikhail R. Gadelha via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 07:25:12 PDT 2019


Author: mramalho
Date: Tue Mar 26 07:25:12 2019
New Revision: 356994

URL: http://llvm.org/viewvc/llvm-project?rev=356994&view=rev
Log:
Moved body of methods dump to .cpp file to fix compilation when modules
are enabled

Modified:
    llvm/trunk/include/llvm/Support/SMTAPI.h
    llvm/trunk/lib/Support/Z3Solver.cpp

Modified: llvm/trunk/include/llvm/Support/SMTAPI.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SMTAPI.h?rev=356994&r1=356993&r2=356994&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SMTAPI.h (original)
+++ llvm/trunk/include/llvm/Support/SMTAPI.h Tue Mar 26 07:25:12 2019
@@ -70,7 +70,7 @@ public:
 
   virtual void print(raw_ostream &OS) const = 0;
 
-  LLVM_DUMP_METHOD void dump() const { print(llvm::errs()); }
+  LLVM_DUMP_METHOD void dump() const;
 
 protected:
   /// Query the SMT solver and returns true if two sorts are equal (same kind
@@ -117,7 +117,7 @@ public:
 
   virtual void print(raw_ostream &OS) const = 0;
 
-  LLVM_DUMP_METHOD void dump() const { print(llvm::errs()); }
+  LLVM_DUMP_METHOD void dump() const;
 
 protected:
   /// Query the SMT solver and returns true if two sorts are equal (same kind
@@ -138,7 +138,7 @@ public:
   SMTSolver() = default;
   virtual ~SMTSolver() = default;
 
-  LLVM_DUMP_METHOD void dump() const { print(llvm::errs()); }
+  LLVM_DUMP_METHOD void dump() const;
 
   // Returns an appropriate floating-point sort for the given bitwidth.
   SMTSortRef getFloatSort(unsigned BitWidth) {

Modified: llvm/trunk/lib/Support/Z3Solver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Z3Solver.cpp?rev=356994&r1=356993&r2=356994&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Z3Solver.cpp (original)
+++ llvm/trunk/lib/Support/Z3Solver.cpp Tue Mar 26 07:25:12 2019
@@ -824,3 +824,7 @@ llvm::SMTSolverRef llvm::CreateZ3Solver(
   return nullptr;
 #endif
 }
+
+LLVM_DUMP_METHOD void SMTSort::dump() const { print(llvm::errs()); }
+LLVM_DUMP_METHOD void SMTExpr::dump() const { print(llvm::errs()); }
+LLVM_DUMP_METHOD void SMTSolver::dump() const { print(llvm::errs()); }




More information about the llvm-commits mailing list