[Lldb-commits] [PATCH] D17022: [LLDB][MIPS] Provide CPU string to compiler for appropriate code generation for MIPS

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 10 09:52:09 PST 2016


clayborg requested changes to this revision.
clayborg added a comment.

As Zach said, you could add a function to ArchSpec like:

  std::string
  ArchSpec::GetClangTargetCPU();

and move your code from the large switch statement into there. It can return an empty string for any architecture that don't add their own case for the switch statement.


Repository:
  rL LLVM

http://reviews.llvm.org/D17022





More information about the lldb-commits mailing list