Mark some functions as used which are used within debug-only code. This
authorChandler Carruth <chandlerc@gmail.com>
Mon, 18 Apr 2011 18:49:44 +0000 (18:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 18 Apr 2011 18:49:44 +0000 (18:49 +0000)
silences Clang's -Wunused-function when building in release mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LazyValueInfo.cpp
lib/Transforms/Instrumentation/PathProfiling.cpp

index 9e7da6ce2de9e212d58cb06264928bc0538a0237..8bde3cc2842e1ae0ecc007f33d398d8750fe8ceb 100644 (file)
@@ -268,6 +268,8 @@ public:
 } // end anonymous namespace.
 
 namespace llvm {
 } // 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";
 raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
   if (Val.isUndefined())
     return OS << "undefined";
index 3def2af2fee99714106229ce6b735ad86e621540..6bd4478395ba133abc4df2c045dc9aada593d247 100644 (file)
@@ -388,6 +388,9 @@ namespace llvm {
   ftEntryTypeBuilder;
 
   // BallLarusEdge << operator overloading
   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() << " -> "
   raw_ostream& operator<<(raw_ostream& os,
                           const BLInstrumentationEdge& edge) {
     os << "[" << edge.getSource()->getName() << " -> "