diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-09-07 23:28:24 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-09-07 23:28:24 +0000 |
| commit | 975293f0e593761a5d2d4446463fecd14b425aff (patch) | |
| tree | 6c76aa6c5c88ff1c26a0a1607ffe66522ca4eb20 /llvm/tools/llvm-cat | |
| parent | 0e8c4bb05542ee035aae1732f0e5c434ecd20336 (diff) | |
| download | bcm5719-llvm-975293f0e593761a5d2d4446463fecd14b425aff.tar.gz bcm5719-llvm-975293f0e593761a5d2d4446463fecd14b425aff.zip | |
[Bitcode] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 312760
Diffstat (limited to 'llvm/tools/llvm-cat')
| -rw-r--r-- | llvm/tools/llvm-cat/llvm-cat.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cat/llvm-cat.cpp b/llvm/tools/llvm-cat/llvm-cat.cpp index 8a21a6d07ca..26e0a0d6c61 100644 --- a/llvm/tools/llvm-cat/llvm-cat.cpp +++ b/llvm/tools/llvm-cat/llvm-cat.cpp @@ -1,4 +1,4 @@ -//===-- llvm-cat.cpp - LLVM module concatenation utility ------------------===// +//===- llvm-cat.cpp - LLVM module concatenation utility -------------------===// // // The LLVM Compiler Infrastructure // @@ -13,11 +13,23 @@ // //===----------------------------------------------------------------------===// +#include "llvm/ADT/SmallVector.h" #include "llvm/Bitcode/BitcodeReader.h" #include "llvm/Bitcode/BitcodeWriter.h" +#include "llvm/IR/LLVMContext.h" +#include "llvm/IR/Module.h" #include "llvm/IRReader/IRReader.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/Error.h" #include "llvm/Support/FileSystem.h" +#include "llvm/Support/MemoryBuffer.h" +#include "llvm/Support/SourceMgr.h" +#include "llvm/Support/raw_ostream.h" +#include <algorithm> +#include <memory> +#include <string> +#include <system_error> +#include <vector> using namespace llvm; @@ -70,8 +82,8 @@ int main(int argc, char **argv) { std::error_code EC; raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::F_None); if (EC) { - llvm::errs() << argv[0] << ": cannot open " << OutputFilename - << " for writing: " << EC.message(); + errs() << argv[0] << ": cannot open " << OutputFilename << " for writing: " + << EC.message(); return 1; } |

