summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-23 12:30:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-23 12:30:58 +0000
commit51f6096cf80a3a02d20d5f109188088e489d73e4 (patch)
treeef1df475f137b7d1f85e6cead828c3e7e9bfe6b6 /llvm/lib/Support/GraphWriter.cpp
parent5b4362276b1f38d6a7dd1c67cc5c8cc45e25960b (diff)
downloadbcm5719-llvm-51f6096cf80a3a02d20d5f109188088e489d73e4.tar.gz
bcm5719-llvm-51f6096cf80a3a02d20d5f109188088e489d73e4.zip
Move private classes into anonymous namespaces
NFC. llvm-svn: 232944
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r--llvm/lib/Support/GraphWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp
index 054df528474..c0b5513d5a1 100644
--- a/llvm/lib/Support/GraphWriter.cpp
+++ b/llvm/lib/Support/GraphWriter.cpp
@@ -98,6 +98,7 @@ static bool ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args,
return false;
}
+namespace {
struct GraphSession {
std::string LogBuffer;
bool TryFindProgram(StringRef Names, std::string &ProgramPath) {
@@ -114,6 +115,7 @@ struct GraphSession {
return false;
}
};
+} // namespace
static const char *getProgramName(GraphProgram::Name program) {
switch (program) {
OpenPOWER on IntegriCloud