summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-26 01:54:21 +0000
committerChris Lattner <sabre@nondot.org>2006-01-26 01:54:21 +0000
commit06070ea4ab130f62429e1143083d3da79ca0b92a (patch)
tree75066419ef3263e35c2c69c3f6e9b42dcd0d0c26
parent8547e3ab169ae17f2ad5885be454f27ea7fdd966 (diff)
downloadbcm5719-llvm-06070ea4ab130f62429e1143083d3da79ca0b92a.tar.gz
bcm5719-llvm-06070ea4ab130f62429e1143083d3da79ca0b92a.zip
Allow use of isa<InlineAsm>(X) without #including InlineAsm.h
llvm-svn: 25632
-rw-r--r--llvm/include/llvm/Value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h
index f3fa75ffda7..5c50fd0a5d3 100644
--- a/llvm/include/llvm/Value.h
+++ b/llvm/include/llvm/Value.h
@@ -31,6 +31,7 @@ class BasicBlock;
class GlobalValue;
class Function;
class GlobalVariable;
+class InlineAsm;
class SymbolTable;
//===----------------------------------------------------------------------===//
@@ -213,6 +214,9 @@ template <> inline bool isa_impl<Constant, Value>(const Value &Val) {
template <> inline bool isa_impl<Argument, Value>(const Value &Val) {
return Val.getValueType() == Value::ArgumentVal;
}
+template <> inline bool isa_impl<InlineAsm, Value>(const Value &Val) {
+ return Val.getValueType() == Value::InlineAsmVal;
+}
template <> inline bool isa_impl<Instruction, Value>(const Value &Val) {
return Val.getValueType() >= Value::InstructionVal;
}
OpenPOWER on IntegriCloud