summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/SetTheory.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-10-24 22:03:59 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-10-24 22:03:59 +0000
commit7090937330f51c5876ce66a475be9c0688a4a6d9 (patch)
treeb17e1311a0e0e291bcc2b7d64feedc1f1e5ad7c7 /llvm/utils/TableGen/SetTheory.h
parentdf26a90dc2c451c1c6d68e93b3a013b87c48f776 (diff)
downloadbcm5719-llvm-7090937330f51c5876ce66a475be9c0688a4a6d9.tar.gz
bcm5719-llvm-7090937330f51c5876ce66a475be9c0688a4a6d9.zip
Don't use stack unwinding to provide the location information for
SetTheory, but pass down the location explicitly. llvm-svn: 166629
Diffstat (limited to 'llvm/utils/TableGen/SetTheory.h')
-rw-r--r--llvm/utils/TableGen/SetTheory.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/SetTheory.h b/llvm/utils/TableGen/SetTheory.h
index b394058f4c3..122372ab33c 100644
--- a/llvm/utils/TableGen/SetTheory.h
+++ b/llvm/utils/TableGen/SetTheory.h
@@ -49,6 +49,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/SetVector.h"
+#include "llvm/Support/SourceMgr.h"
#include <map>
#include <vector>
@@ -72,7 +73,8 @@ public:
/// apply - Apply this operator to Expr's arguments and insert the result
/// in Elts.
- virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts) =0;
+ virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts,
+ ArrayRef<SMLoc> Loc) =0;
};
/// Expander - A callback function that can transform a Record representing a
@@ -119,13 +121,13 @@ public:
void addOperator(StringRef Name, Operator*);
/// evaluate - Evaluate Expr and append the resulting set to Elts.
- void evaluate(Init *Expr, RecSet &Elts);
+ void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc);
/// evaluate - Evaluate a sequence of Inits and append to Elts.
template<typename Iter>
- void evaluate(Iter begin, Iter end, RecSet &Elts) {
+ void evaluate(Iter begin, Iter end, RecSet &Elts, ArrayRef<SMLoc> Loc) {
while (begin != end)
- evaluate(*begin++, Elts);
+ evaluate(*begin++, Elts, Loc);
}
/// expand - Expand a record into a set of elements if possible. Return a
OpenPOWER on IntegriCloud