[Lldb-commits] [lldb] r265797 - Fix indentation for commit 263859.

Luke Drummond via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 8 09:30:55 PDT 2016


Author: ldrumm
Date: Fri Apr  8 11:30:55 2016
New Revision: 265797

URL: http://llvm.org/viewvc/llvm-project?rev=265797&view=rev
Log:
Fix indentation for commit 263859.

Modified:
    lldb/trunk/include/lldb/Expression/LLVMUserExpression.h

Modified: lldb/trunk/include/lldb/Expression/LLVMUserExpression.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/LLVMUserExpression.h?rev=265797&r1=265796&r2=265797&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Expression/LLVMUserExpression.h (original)
+++ lldb/trunk/include/lldb/Expression/LLVMUserExpression.h Fri Apr  8 11:30:55 2016
@@ -16,6 +16,9 @@
 #include <map>
 #include <vector>
 
+// Other libraries and framework includes
+#include "llvm/IR/LegacyPassManager.h"
+
 // Project includes
 #include "lldb/Expression/UserExpression.h"
 
@@ -34,7 +37,18 @@ namespace lldb_private
 //----------------------------------------------------------------------
 class LLVMUserExpression : public UserExpression
 {
-  public:
+public:
+    // The IRPasses struct is filled in by a runtime after an expression is compiled and can be used to to run
+    // fixups/analysis passes as required. EarlyPasses are run on the generated module before lldb runs its own IR
+    // fixups and inserts instrumentation code/pointer checks. LatePasses are run after the module has been processed by
+    // llvm, before the module is assembled and run in the ThreadPlan.
+    struct IRPasses
+    {
+        IRPasses() : EarlyPasses(nullptr), LatePasses(nullptr){};
+        std::shared_ptr<llvm::legacy::PassManager> EarlyPasses;
+        std::shared_ptr<llvm::legacy::PassManager> LatePasses;
+    };
+
       LLVMUserExpression(ExecutionContextScope &exe_scope, const char *expr, const char *expr_prefix,
                          lldb::LanguageType language, ResultType desired_type,
                          const EvaluateExpressionOptions &options);




More information about the lldb-commits mailing list