diff options
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index 240f597..f47a52a 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -11,9 +11,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/GraphWriter.h" - -#include "DebugOptions.h" - #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" @@ -32,21 +29,8 @@ using namespace llvm; -#ifdef __APPLE__ -namespace { -struct CreateViewBackground { - static void *call() { - return new cl::opt<bool>("view-background", cl::Hidden, - cl::desc("Execute graph viewer in the background. " - "Creates tmp file litter.")); - } -}; -} // namespace -static ManagedStatic<cl::opt<bool>, CreateViewBackground> ViewBackground; -void llvm::initGraphWriterOptions() { *ViewBackground; } -#else -void llvm::initGraphWriterOptions() {} -#endif +static cl::opt<bool> ViewBackground("view-background", cl::Hidden, + cl::desc("Execute graph viewer in the background. Creates tmp file litter.")); std::string llvm::DOT::EscapeString(const std::string &Label) { std::string Str(Label); |