summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-07-15 22:51:43 +0000
committerDan Gohman <gohman@apple.com>2011-07-15 22:51:43 +0000
commit945864d6dc45c9ac62f0d9fbbbd3771e48441031 (patch)
tree57041b59763ea37f0b5c8fd925619d1da4af5a5a /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentd57a049e5cb99df889e1247ef409dbce8c63da86 (diff)
downloadbcm5719-llvm-945864d6dc45c9ac62f0d9fbbbd3771e48441031.tar.gz
bcm5719-llvm-945864d6dc45c9ac62f0d9fbbbd3771e48441031.zip
LegalizeDAG doesn't need its own copy of this enum.
llvm-svn: 135320
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 5f7c0fdb964..d06e2bdce06 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -58,12 +58,6 @@ class SelectionDAGLegalize {
/// against each other, including inserted libcalls.
SmallVector<SDValue, 8> LastCALLSEQ;
- enum LegalizeAction {
- Legal, // The target natively supports this operation.
- Promote, // This operation should be executed in a larger type.
- Expand // Try to expand this to other ops, otherwise use a libcall.
- };
-
/// LegalizedNodes - For nodes that are of legal width, and that have more
/// than one use, this map indicates what regularized operand to use. This
/// allows us to avoid legalizing the same thing more than once.
@@ -1612,7 +1606,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
case TargetLowering::Custom:
Result = TLI.LowerOperation(Result, DAG);
break;
- case Expand:
+ case TargetLowering::Expand:
EVT WideScalarVT = Tmp3.getValueType().getScalarType();
EVT NarrowScalarVT = StVT.getScalarType();
OpenPOWER on IntegriCloud