mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Have llvm-mc --version print the list of registered targets like llc does.
Patch by jey. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed5edea96d
commit
4445215622
@ -512,6 +512,9 @@ int main(int argc, char **argv) {
|
|||||||
llvm::InitializeAllAsmParsers();
|
llvm::InitializeAllAsmParsers();
|
||||||
llvm::InitializeAllDisassemblers();
|
llvm::InitializeAllDisassemblers();
|
||||||
|
|
||||||
|
// Register the target printer for --version.
|
||||||
|
cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
|
||||||
|
|
||||||
cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n");
|
cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n");
|
||||||
TripleName = Triple::normalize(TripleName);
|
TripleName = Triple::normalize(TripleName);
|
||||||
setDwarfDebugFlags(argc, argv);
|
setDwarfDebugFlags(argc, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user