This is an archive of the discontinued LLVM Phabricator instance.

COFF: handle /debugtype option
ClosedPublic

Authored by compnerd on Aug 8 2016, 2:00 PM.

Details

Reviewers
ruiu
Summary

Add the support infrastructure for the /debugtype option which takes a comma delimited list of debug info to generate. The defaults are based on other options potentially (/driver or /profile). This sets up the infrastructure to allow us to emit RSDS records to get "build id" equivalents on COFF (similar to binutils).

Diff Detail

Event Timeline

compnerd updated this revision to Diff 67222.Aug 8 2016, 2:00 PM
compnerd retitled this revision from to COFF: handle /debugtype option.
compnerd updated this object.
compnerd added a reviewer: ruiu.
compnerd set the repository for this revision to rL LLVM.
compnerd added a subscriber: llvm-commits.
ruiu accepted this revision.Aug 8 2016, 2:04 PM
ruiu edited edge metadata.

LGTM with a few nits.

COFF/Config.h
66–71

Let's move this enum class definition outside of Configuration so that we can write DebugType::None instead of Configuration::DebugType::None.

COFF/Driver.cpp
300

auto -> StringRef

302

Remove llvm:: from this patch because we have using namespace llvm.

This revision is now accepted and ready to land.Aug 8 2016, 2:04 PM
compnerd closed this revision.Aug 8 2016, 3:10 PM

SVN r278056 (with the nits addressed).