Mark some functions as used which are used within debug-only code. This

silences Clang's -Wunused-function when building in release mode.

llvm-svn: 129709
This commit is contained in:
Chandler Carruth 2011-04-18 18:49:44 +00:00
parent f2e8397b4b
commit 2b1ba48f8d
2 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,8 @@ public:
} // end anonymous namespace. } // end anonymous namespace.
namespace llvm { namespace llvm {
raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val)
LLVM_ATTRIBUTE_USED;
raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) { raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
if (Val.isUndefined()) if (Val.isUndefined())
return OS << "undefined"; return OS << "undefined";

View File

@ -388,6 +388,9 @@ namespace llvm {
ftEntryTypeBuilder; ftEntryTypeBuilder;
// BallLarusEdge << operator overloading // BallLarusEdge << operator overloading
raw_ostream& operator<<(raw_ostream& os,
const BLInstrumentationEdge& edge)
LLVM_ATTRIBUTE_USED;
raw_ostream& operator<<(raw_ostream& os, raw_ostream& operator<<(raw_ostream& os,
const BLInstrumentationEdge& edge) { const BLInstrumentationEdge& edge) {
os << "[" << edge.getSource()->getName() << " -> " os << "[" << edge.getSource()->getName() << " -> "