summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CFGPrinter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 23:42:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 23:42:17 +0000
commitf75727ab146880ade52df250150bbcc638fd1da0 (patch)
treec2ba20429d4e1d9d90ad21525f7dae8b42529fb6 /llvm/lib/Analysis/CFGPrinter.cpp
parentc85e79f3e0784e7271135f07bd0d04803fbb16b0 (diff)
downloadbcm5719-llvm-f75727ab146880ade52df250150bbcc638fd1da0.tar.gz
bcm5719-llvm-f75727ab146880ade52df250150bbcc638fd1da0.zip
Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduce
LLVM's footprint and speed up linking. llvm-svn: 33941
Diffstat (limited to 'llvm/lib/Analysis/CFGPrinter.cpp')
-rw-r--r--llvm/lib/Analysis/CFGPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp
index f16dca833cd..a57a0685a7e 100644
--- a/llvm/lib/Analysis/CFGPrinter.cpp
+++ b/llvm/lib/Analysis/CFGPrinter.cpp
@@ -23,6 +23,7 @@
#include "llvm/Analysis/CFGPrinter.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Support/CFG.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/GraphWriter.h"
#include "llvm/Config/config.h"
#include <iosfwd>
@@ -89,7 +90,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
}
namespace {
- struct CFGPrinter : public FunctionPass {
+ struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass {
virtual bool runOnFunction(Function &F) {
std::string Filename = "cfg." + F.getName() + ".dot";
cerr << "Writing '" << Filename << "'...";
@@ -113,7 +114,7 @@ namespace {
RegisterPass<CFGPrinter> P1("print-cfg",
"Print CFG of function to 'dot' file");
- struct CFGOnlyPrinter : public CFGPrinter {
+ struct VISIBILITY_HIDDEN CFGOnlyPrinter : public CFGPrinter {
virtual bool runOnFunction(Function &F) {
bool OldCFGOnly = CFGOnly;
CFGOnly = true;
OpenPOWER on IntegriCloud