reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/driver/cc1as_main.cpp
  332   const Target *TheTarget = TargetRegistry::lookupTarget(Opts.Triple, Error);
  334     return Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
  337       MemoryBuffer::getFileOrSTDIN(Opts.InputFile);
  341     return Diags.Report(diag::err_fe_error_reading) << Opts.InputFile;
  351   SrcMgr.setIncludeDirs(Opts.IncludePaths);
  353   std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(Opts.Triple));
  358       TheTarget->createMCAsmInfo(*MRI, Opts.Triple, MCOptions));
  363   MAI->setCompressDebugSections(Opts.CompressDebugSections);
  365   MAI->setRelaxELFRelocations(Opts.RelaxELFRelocations);
  367   bool IsBinary = Opts.OutputType == AssemblerInvocation::FT_Obj;
  368   if (Opts.OutputPath.empty())
  369     Opts.OutputPath = "-";
  371       getOutputStream(Opts.OutputPath, Diags, IsBinary);
  375   if (!Opts.SplitDwarfOutput.empty())
  376     DwoOS = getOutputStream(Opts.SplitDwarfOutput, Diags, IsBinary);
  385   if (Opts.RelocationModel == "static") {
  387   } else if (Opts.RelocationModel == "pic") {
  390     assert(Opts.RelocationModel == "dynamic-no-pic" &&
  395   MOFI->InitMCObjectFileInfo(Triple(Opts.Triple), PIC, Ctx);
  396   if (Opts.SaveTemporaryLabels)
  398   if (Opts.GenDwarfForAssembly)
  400   if (!Opts.DwarfDebugFlags.empty())
  401     Ctx.setDwarfDebugFlags(StringRef(Opts.DwarfDebugFlags));
  402   if (!Opts.DwarfDebugProducer.empty())
  403     Ctx.setDwarfDebugProducer(StringRef(Opts.DwarfDebugProducer));
  404   if (!Opts.DebugCompilationDir.empty())
  405     Ctx.setCompilationDir(Opts.DebugCompilationDir);
  412   if (!Opts.DebugPrefixMap.empty())
  413     for (const auto &KV : Opts.DebugPrefixMap)
  415   if (!Opts.MainFileName.empty())
  416     Ctx.setMainFileName(StringRef(Opts.MainFileName));
  417   Ctx.setDwarfVersion(Opts.DwarfVersion);
  418   if (Opts.GenDwarfForAssembly)
  419     Ctx.setGenDwarfRootFile(Opts.InputFile,
  424   if (!Opts.Features.empty()) {
  425     FS = Opts.Features[0];
  426     for (unsigned i = 1, e = Opts.Features.size(); i != e; ++i)
  427       FS += "," + Opts.Features[i];
  434       TheTarget->createMCSubtargetInfo(Opts.Triple, Opts.CPU, FS));
  434       TheTarget->createMCSubtargetInfo(Opts.Triple, Opts.CPU, FS));
  439   MCOptions.MCNoWarn = Opts.NoWarn;
  440   MCOptions.MCFatalWarnings = Opts.FatalWarnings;
  441   MCOptions.ABIName = Opts.TargetABI;
  444   if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
  446         llvm::Triple(Opts.Triple), Opts.OutputAsmVariant, *MAI, *MCII, *MRI);
  446         llvm::Triple(Opts.Triple), Opts.OutputAsmVariant, *MAI, *MCII, *MRI);
  449     if (Opts.ShowEncoding)
  458         Opts.ShowInst));
  459   } else if (Opts.OutputType == AssemblerInvocation::FT_Null) {
  462     assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
  477     Triple T(Opts.Triple);
  480         Opts.RelaxAll, Opts.IncrementalLinkerCompatible,
  480         Opts.RelaxAll, Opts.IncrementalLinkerCompatible,
  482     Str.get()->InitSections(Opts.NoExecStack);
  487   if (Opts.EmbedBitcode && Ctx.getObjectFileInfo()->getObjectFileType() ==
  507     Failed = Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
  510   for (auto &S : Opts.SymbolDefs) {
  522     Failed = Parser->Run(Opts.NoInitialTextSection);
  534     if (Opts.OutputPath != "-")
  535       sys::fs::remove(Opts.OutputPath);
  536     if (!Opts.SplitDwarfOutput.empty() && Opts.SplitDwarfOutput != "-")
  536     if (!Opts.SplitDwarfOutput.empty() && Opts.SplitDwarfOutput != "-")
  537       sys::fs::remove(Opts.SplitDwarfOutput);