aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-18 18:49:44 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-18 18:49:44 +0000
commit2b1ba48f8dac0b36980a7ae7da151c8590f1800e (patch)
treedf77cb96b91246917b0f721dc0ef41ac9fe02190 /llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
parentf2e8397b4b5cd1013fdc8773fa672887b09aa5e8 (diff)
downloadllvm-2b1ba48f8dac0b36980a7ae7da151c8590f1800e.zip
llvm-2b1ba48f8dac0b36980a7ae7da151c8590f1800e.tar.gz
llvm-2b1ba48f8dac0b36980a7ae7da151c8590f1800e.tar.bz2
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
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/PathProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PathProfiling.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
index 3def2af..6bd4478 100644
--- a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
@@ -389,6 +389,9 @@ namespace llvm {
// 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: "