OSDN Git Service

Revert [CommandLine] Remove OptionCategory and SubCommand caches from the Option...
authorDon Hinton <hintonda@gmail.com>
Sat, 22 Jun 2019 23:32:36 +0000 (23:32 +0000)
committerDon Hinton <hintonda@gmail.com>
Sat, 22 Jun 2019 23:32:36 +0000 (23:32 +0000)
commit94750391d90bef27c15608783a2cb7885a3a3220
treeafc77c1c9125d83bf85b11ab9072b0a47eea3794
parenta600636743291714a3afeeda8ae7f479b50913e7
Revert [CommandLine] Remove OptionCategory and SubCommand caches from the Option class.

This reverts r364134 (git commit a5b83bc9e3b8e8945b55068c762bd6c73621a4b0)

Caused errors in the asan bot, so the GeneralCategory global needs to
be changed to ManagedStatic.

Differential Revision: https://reviews.llvm.org/D62105

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364141 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp
unittests/Support/CommandLineTest.cpp