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.
namespace llvm {
raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val)
LLVM_ATTRIBUTE_USED;
raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
if (Val.isUndefined())
return OS << "undefined";

View File

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