diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:13:00 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:13:00 +0000 |
commit | 7f6ed20009208c42046dd835c89657e2286cc508 (patch) | |
tree | a3832130f7c76af45a4c4cd331b8d19939b9240a /llvm/utils/TableGen | |
parent | 20c18c344b6f63b3ac401e5628830167205e27dc (diff) | |
download | bcm5719-llvm-7f6ed20009208c42046dd835c89657e2286cc508.tar.gz bcm5719-llvm-7f6ed20009208c42046dd835c89657e2286cc508.zip |
Add a --linker command-line option, make all tests pass.
llvm-svn: 50755
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r-- | llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index aaa10992d99..32b6d383288 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -175,11 +175,12 @@ struct GlobalOptionDescription : public OptionDescription { if (other.Type != Type) throw "Conflicting definitions for the option " + Name + "!"; - if (Help.empty() && !other.Help.empty()) + if (Help == DefaultHelpString) Help = other.Help; - else if (!Help.empty() && !other.Help.empty()) - cerr << "Warning: more than one help string defined for option " + else if (other.Help != DefaultHelpString) { + llvm::cerr << "Warning: more than one help string defined for option " + Name + "\n"; + } Flags |= other.Flags; } @@ -290,8 +291,8 @@ struct ToolProperties : public RefCountedBase<ToolProperties> { // Default ctor here is needed because StringMap can only store // DefaultConstructible objects - ToolProperties() {} - ToolProperties (const std::string& n) : Name(n) {} + ToolProperties() : Flags(0) {} + ToolProperties (const std::string& n) : Name(n), Flags(0) {} }; |