diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-17 23:05:52 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-17 23:05:52 +0000 |
commit | 1d617acef9f102629b736db06a5b5def0e116297 (patch) | |
tree | 871a8cf2f39b77b627b0e72137d13895f775ffe9 /clang/tools/driver/cc1as_main.cpp | |
parent | 40f8f2ff2452c32529a10ba504ba7fbecf8731cd (diff) | |
download | bcm5719-llvm-1d617acef9f102629b736db06a5b5def0e116297.tar.gz bcm5719-llvm-1d617acef9f102629b736db06a5b5def0e116297.zip |
Wire up support for the controlling the extended dwarf .file directive. With
r142300 but not this patch, clang -S may emit .s files that assemblers other
than llvm-mc can't parse.
llvm-svn: 142301
Diffstat (limited to 'clang/tools/driver/cc1as_main.cpp')
-rw-r--r-- | clang/tools/driver/cc1as_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/tools/driver/cc1as_main.cpp b/clang/tools/driver/cc1as_main.cpp index 7cc42aa6276..4215a328c55 100644 --- a/clang/tools/driver/cc1as_main.cpp +++ b/clang/tools/driver/cc1as_main.cpp @@ -292,7 +292,9 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, } Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true, /*useLoc*/ true, - /*useCFI*/ true, IP, CE, MAB, + /*useCFI*/ true, + /*useDwarfDirectory*/ true, + IP, CE, MAB, Opts.ShowInst)); } else if (Opts.OutputType == AssemblerInvocation::FT_Null) { Str.reset(createNullStreamer(Ctx)); |