llvm-project/lldb/source/Expression
Greg Clayton 64195a2c8b Abtracted all mach-o and ELF out of ArchSpec. This patch is a modified form
of Stephen Wilson's idea (thanks for the input Stephen!). What I ended up
doing was:
- Got rid of ArchSpec::CPU (which was a generic CPU enumeration that mimics
  the contents of llvm::Triple::ArchType). We now rely upon the llvm::Triple 
  to give us the machine type from llvm::Triple::ArchType.
- There is a new ArchSpec::Core definition which further qualifies the CPU
  core we are dealing with into a single enumeration. If you need support for
  a new Core and want to debug it in LLDB, it must be added to this list. In
  the future we can allow for dynamic core registration, but for now it is
  hard coded.
- The ArchSpec can now be initialized with a llvm::Triple or with a C string
  that represents the triple (it can just be an arch still like "i386").
- The ArchSpec can still initialize itself with a architecture type -- mach-o
  with cpu type and subtype, or ELF with e_machine + e_flags -- and this will
  then get translated into the internal llvm::Triple::ArchSpec + ArchSpec::Core.
  The mach-o cpu type and subtype can be accessed using the getter functions:
  
  uint32_t
  ArchSpec::GetMachOCPUType () const;

  uint32_t
  ArchSpec::GetMachOCPUSubType () const;
  
  But these functions are just converting out internal llvm::Triple::ArchSpec 
  + ArchSpec::Core back into mach-o. Same goes for ELF.

All code has been updated to deal with the changes.

This should abstract us until later when the llvm::TargetSpec stuff gets
finalized and we can then adopt it.

llvm-svn: 126278
2011-02-23 00:35:02 +00:00
..
ASTDumper.cpp Added a new class, ASTDumper, that provides verbose 2011-02-01 23:43:26 +00:00
ASTResultSynthesizer.cpp Fixed a hang in the expression parser's result synthesizer that occurs when the function generated for the expression is completely empty except for a NULL_STMT. This happens sometimes when the parser returns errors. 2011-02-22 21:52:56 +00:00
ASTStructExtractor.cpp Updated to latest LLVM. Major LLVM changes: 2010-09-23 03:01:22 +00:00
ClangASTSource.cpp Updated Clang to a version that supports propagating 2011-01-27 04:42:51 +00:00
ClangExpressionDeclMap.cpp Clean up a bit of the type getting code where lldb_private:Type now has 2011-02-16 23:00:21 +00:00
ClangExpressionParser.cpp Abtracted all mach-o and ELF out of ArchSpec. This patch is a modified form 2011-02-23 00:35:02 +00:00
ClangExpressionVariable.cpp Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
ClangFunction.cpp Clean up a bit of the type getting code where lldb_private:Type now has 2011-02-16 23:00:21 +00:00
ClangPersistentVariables.cpp Patch from Stephen Wilson: 2010-12-20 21:45:22 +00:00
ClangUserExpression.cpp Clean up a bit of the type getting code where lldb_private:Type now has 2011-02-16 23:00:21 +00:00
ClangUtilityFunction.cpp Made lldb_private::ArchSpec contain much more than just an architecture. It 2011-02-15 21:59:32 +00:00
DWARFExpression.cpp Endian patch from Kirk Beitz that allows better cross platform building. 2011-02-01 01:31:41 +00:00
IRDynamicChecks.cpp Enabled extra warnings and fixed a bunch of small issues. 2011-01-25 23:55:37 +00:00
IRForTarget.cpp Fixes for two bugs: 2011-02-10 22:17:53 +00:00
IRToDWARF.cpp Move some of the more noisy "log enable lldb expression" output to the verbose output. 2011-01-22 01:25:40 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
RecordingMemoryManager.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00