Changeset 5110 for icGREP/icgrep-devel


Ignore:
Timestamp:
Jul 29, 2016, 1:53:30 PM (3 years ago)
Author:
cameron
Message:

-asm-verbose mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain.cpp

    r5108 r5110  
    3737static cl::opt<std::string> IROutputFilename("dump-generated-IR-output", cl::init(""), cl::desc("output IR filename"), cl::cat(CodeGenOptions));
    3838static cl::opt<bool> DumpASM("DumpASM", cl::init(false), cl::desc("Print Assembly Code."), cl::cat(CodeGenOptions));
     39static cl::opt<bool> AsmVerbose("asm-verbose",
     40                                cl::desc("Add comments to directives."),
     41                                cl::init(true), cl::cat(CodeGenOptions));
    3942
    4043char OptLevel;
     
    110113    builder.setErrorStr(&errMessage);
    111114    TargetOptions opts = InitTargetOptionsFromCodeGenFlags();
     115    opts.MCOptions.AsmVerbose = codegen::AsmVerbose;
     116
    112117    builder.setTargetOptions(opts);
    113118    CodeGenOpt::Level optLevel = CodeGenOpt::Level::None;
Note: See TracChangeset for help on using the changeset viewer.