[all-commits] [llvm/llvm-project] 076308: [llvm-objdump][NFC] Declare command-line externs i...
Hubert Tong via All-commits
all-commits at lists.llvm.org
Mon Apr 6 13:58:07 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 076308a4b575d488440d7e715965e9d1c0adb9bb
https://github.com/llvm/llvm-project/commit/076308a4b575d488440d7e715965e9d1c0adb9bb
Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
Date: 2020-04-06 (Mon, 06 Apr 2020)
Changed paths:
M llvm/tools/llvm-objdump/ELFDump.cpp
M llvm/tools/llvm-objdump/MachODump.cpp
A llvm/tools/llvm-objdump/MachODump.h
M llvm/tools/llvm-objdump/llvm-objdump.cpp
M llvm/tools/llvm-objdump/llvm-objdump.h
Log Message:
-----------
[llvm-objdump][NFC] Declare command-line externs in headers with namespace
Summary:
This patch moves the forward declarations of command-line `cl::*`
externs in `MachODump.cpp` and `llvm-objdump.cpp` into the headers
corresponding to the file that defines the variable. At the same time,
these externs are moved into the `llvm::objdump` namespace. The externs
that are not referenced outside their defining translation unit are made
static.
This does not factor out uses of the Mach-O options from
`llvm-objdump.cpp`.
Reviewers: jhenderson, MaskRay, DiggerLin, jasonliu, daltenty
Reviewed By: jhenderson, MaskRay
Subscribers: rupprecht, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77388
More information about the All-commits
mailing list