mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-03 18:09:29 +00:00
Hide variable from other functions.
llvm-svn: 12118
This commit is contained in:
parent
bc7fc82865
commit
d6bb9674d9
@ -48,8 +48,9 @@ static Option *getOption(const std::string &Str) {
|
||||
}
|
||||
|
||||
static std::vector<Option*> &getPositionalOpts() {
|
||||
static std::vector<Option*> Positional;
|
||||
return Positional;
|
||||
static std::vector<Option*> *Positional = 0;
|
||||
if (!Positional) Positional = new std::vector<Option*>();
|
||||
return *Positional;
|
||||
}
|
||||
|
||||
static void AddArgument(const char *ArgName, Option *Opt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user