diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-06-16 00:43:26 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-06-16 00:43:26 +0000 |
commit | af6158962d89f16a6b3efb2dd23f9d63dd160f5b (patch) | |
tree | fea39977a9ceb5ab9d2feda15c4af072ce9fa74c /llvm/lib/Option/Option.cpp | |
parent | f9bc0589353e8e478d798aa9b8790978f6b2432e (diff) | |
download | bcm5719-llvm-af6158962d89f16a6b3efb2dd23f9d63dd160f5b.tar.gz bcm5719-llvm-af6158962d89f16a6b3efb2dd23f9d63dd160f5b.zip |
[BinaryFormat, Option, TableGen] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 305537
Diffstat (limited to 'llvm/lib/Option/Option.cpp')
-rw-r--r-- | llvm/lib/Option/Option.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Option/Option.cpp b/llvm/lib/Option/Option.cpp index 736b939fe80..4832e659f02 100644 --- a/llvm/lib/Option/Option.cpp +++ b/llvm/lib/Option/Option.cpp @@ -1,4 +1,4 @@ -//===--- Option.cpp - Abstract Driver Options -----------------------------===// +//===- Option.cpp - Abstract Driver Options -------------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,22 +7,24 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Option/Option.h" +#include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/Option/Arg.h" #include "llvm/Option/ArgList.h" +#include "llvm/Option/Option.h" +#include "llvm/Option/OptTable.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -#include <algorithm> #include <cassert> +#include <cstring> using namespace llvm; using namespace llvm::opt; Option::Option(const OptTable::Info *info, const OptTable *owner) : Info(info), Owner(owner) { - // Multi-level aliases are not supported. This just simplifies option // tracking, it is not an inherent limitation. assert((!Info || !getAlias().isValid() || !getAlias().getAlias().isValid()) && |