[Lldb-commits] [lldb] r180565 - Purged unnecessary data structures from the IR

Sean Callanan scallanan at apple.com
Thu Apr 25 11:55:45 PDT 2013


Author: spyffe
Date: Thu Apr 25 13:55:45 2013
New Revision: 180565

URL: http://llvm.org/viewvc/llvm-project?rev=180565&view=rev
Log:
Purged unnecessary data structures from the IR
interpreter.  They are a legacy from when the IR
interpreter didn't work with materialized values
but rather got values directly from
ClangExpressionDeclMap.

Also updated the #includes for IRInterpreter
accordingly.

Modified:
    lldb/trunk/source/Expression/IRInterpreter.cpp

Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=180565&r1=180564&r2=180565&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Thu Apr 25 13:55:45 2013
@@ -7,20 +7,20 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lldb/Core/DataEncoder.h"
+#include "lldb/Core/DataExtractor.h"
+#include "lldb/Core/Error.h"
 #include "lldb/Core/Log.h"
-#include "lldb/Core/ValueObjectConstResult.h"
-#include "lldb/Expression/ClangExpressionDeclMap.h"
-#include "lldb/Expression/ClangExpressionVariable.h"
-#include "lldb/Expression/IRForTarget.h"
+#include "lldb/Core/Scalar.h"
+#include "lldb/Core/StreamString.h"
+#include "lldb/Expression/IRMemoryMap.h"
 #include "lldb/Expression/IRInterpreter.h"
 
 #include "llvm/IR/Constants.h"
+#include "llvm/IR/DataLayout.h"
 #include "llvm/IR/Function.h"
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/Module.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/IR/DataLayout.h"
 
 #include <map>
 
@@ -62,26 +62,7 @@ class InterpreterStackFrame
 public:
     typedef std::map <const Value*, lldb::addr_t> ValueMap;
     
-    struct PlacedValue
-    {
-        lldb_private::Value     lldb_value;
-        lldb::addr_t            process_address;
-        size_t                  size;
-        
-        PlacedValue (lldb_private::Value &_lldb_value,
-                     lldb::addr_t _process_address,
-                     size_t _size) :
-            lldb_value(_lldb_value),
-            process_address(_process_address),
-            size(_size)
-        {
-        }
-    };
-    
-    typedef std::vector <PlacedValue> PlacedValueVector;
-
     ValueMap                                m_values;
-    PlacedValueVector                       m_placed_values;
     DataLayout                             &m_target_data;
     lldb_private::IRMemoryMap              &m_memory_map;
     const BasicBlock                       *m_bb;





More information about the lldb-commits mailing list