File tree Expand file tree Collapse file tree 6 files changed +6
-9
lines changed Expand file tree Collapse file tree 6 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 28
28
#include " llvm/Config/llvm-config.h"
29
29
#include " llvm/Support/CrashRecoveryContext.h"
30
30
#include " llvm/Support/FileSystem.h"
31
+ #include " llvm/Support/ManagedStatic.h"
31
32
#include " llvm/Support/Path.h"
32
33
#include " llvm/Support/Process.h"
33
34
#include " llvm/Support/VirtualFileSystem.h"
Original file line number Diff line number Diff line change 12
12
13
13
#include " LLDBTableGenBackends.h" // Declares all backends.
14
14
#include " llvm/Support/CommandLine.h"
15
+ #include " llvm/Support/ManagedStatic.h"
15
16
#include " llvm/Support/PrettyStackTrace.h"
16
17
#include " llvm/Support/Signals.h"
17
18
#include " llvm/TableGen/Error.h"
Original file line number Diff line number Diff line change 28
28
#include " llvm/ADT/Twine.h"
29
29
#include " llvm/ADT/iterator_range.h"
30
30
#include " llvm/Support/ErrorHandling.h"
31
- #include " llvm/Support/ManagedStatic.h"
32
31
#include " llvm/Support/StringSaver.h"
33
32
#include " llvm/Support/raw_ostream.h"
34
33
#include < cassert>
@@ -237,12 +236,6 @@ class SubCommand {
237
236
Option *ConsumeAfterOpt = nullptr ; // The ConsumeAfter option if it exists.
238
237
};
239
238
240
- // A special subcommand representing no subcommand
241
- extern ManagedStatic<SubCommand> TopLevelSubCommand;
242
-
243
- // A special subcommand that can be used to put an option into all subcommands.
244
- extern ManagedStatic<SubCommand> AllSubCommands;
245
-
246
239
class SubCommandGroup {
247
240
SmallVector<SubCommand *, 4 > Subs;
248
241
Original file line number Diff line number Diff line change @@ -455,10 +455,10 @@ void OptionCategory::registerCategory() {
455
455
// initialization because it is referenced from cl::opt constructors, which run
456
456
// dynamically in an arbitrary order.
457
457
LLVM_REQUIRE_CONSTANT_INITIALIZATION
458
- ManagedStatic<SubCommand> llvm::cl:: TopLevelSubCommand;
458
+ static ManagedStatic<SubCommand> TopLevelSubCommand;
459
459
460
460
// A special subcommand that can be used to put an option into all subcommands.
461
- ManagedStatic<SubCommand> llvm::cl:: AllSubCommands;
461
+ static ManagedStatic<SubCommand> AllSubCommands;
462
462
463
463
SubCommand &SubCommand::getTopLevel () { return *TopLevelSubCommand; }
464
464
Original file line number Diff line number Diff line change 19
19
#include " llvm/Support/CommandLine.h"
20
20
#include " llvm/Support/Debug.h"
21
21
#include " llvm/Support/Error.h"
22
+ #include " llvm/Support/ManagedStatic.h"
22
23
#include " llvm/Support/raw_ostream.h"
23
24
#ifdef _WIN32
24
25
#include " llvm/Support/Windows/WindowsSupport.h"
Original file line number Diff line number Diff line change 8
8
9
9
#include " llvm/Support/TypeSize.h"
10
10
#include " llvm/Support/CommandLine.h"
11
+ #include " llvm/Support/ManagedStatic.h"
11
12
#include " llvm/Support/WithColor.h"
12
13
13
14
#include " DebugOptions.h"
You can’t perform that action at this time.
0 commit comments