summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail.ramalho@gmail.com>2019-03-26 14:25:12 +0000
committerMikhail R. Gadelha <mikhail.ramalho@gmail.com>2019-03-26 14:25:12 +0000
commit25f9094d89d01d4fb562ba0edcc2eb63f9e074d7 (patch)
tree5aefb124c7d0f32ee3da34c24af6560cd999fdce
parent9876addcf4eac2b3da610d95df285f4d7b24a65f (diff)
downloadbcm5719-llvm-25f9094d89d01d4fb562ba0edcc2eb63f9e074d7.tar.gz
bcm5719-llvm-25f9094d89d01d4fb562ba0edcc2eb63f9e074d7.zip
Moved body of methods dump to .cpp file to fix compilation when modules
are enabled llvm-svn: 356994
-rw-r--r--llvm/include/llvm/Support/SMTAPI.h6
-rw-r--r--llvm/lib/Support/Z3Solver.cpp4
2 files changed, 7 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/SMTAPI.h b/llvm/include/llvm/Support/SMTAPI.h
index 418c251d5ac..8891faa998e 100644
--- a/llvm/include/llvm/Support/SMTAPI.h
+++ b/llvm/include/llvm/Support/SMTAPI.h
@@ -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) {
diff --git a/llvm/lib/Support/Z3Solver.cpp b/llvm/lib/Support/Z3Solver.cpp
index a8374522bda..5e40831db9e 100644
--- a/llvm/lib/Support/Z3Solver.cpp
+++ b/llvm/lib/Support/Z3Solver.cpp
@@ -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()); }
OpenPOWER on IntegriCloud