[llvm-commits] [llvm] r129709 - in /llvm/trunk/lib: Analysis/LazyValueInfo.cpp Transforms/Instrumentation/PathProfiling.cpp

Chandler Carruth chandlerc at gmail.com
Mon Apr 18 11:49:44 PDT 2011


Author: chandlerc
Date: Mon Apr 18 13:49:44 2011
New Revision: 129709

URL: http://llvm.org/viewvc/llvm-project?rev=129709&view=rev
Log:
Mark some functions as used which are used within debug-only code. This
silences Clang's -Wunused-function when building in release mode.

Modified:
    llvm/trunk/lib/Analysis/LazyValueInfo.cpp
    llvm/trunk/lib/Transforms/Instrumentation/PathProfiling.cpp

Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=129709&r1=129708&r2=129709&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Mon Apr 18 13:49:44 2011
@@ -268,6 +268,8 @@
 } // 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";

Modified: llvm/trunk/lib/Transforms/Instrumentation/PathProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/PathProfiling.cpp?rev=129709&r1=129708&r2=129709&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PathProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PathProfiling.cpp Mon Apr 18 13:49:44 2011
@@ -389,6 +389,9 @@
 
   // 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() << " -> "
        << edge.getTarget()->getName() << "] init: "





More information about the llvm-commits mailing list