[llvm-commits] CVS: llvm/include/llvm/Value.h

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 25 17:54:33 PST 2006



Changes in directory llvm/include/llvm:

Value.h updated: 1.82 -> 1.83
---
Log message:

Allow use of isa<InlineAsm>(X) without #including InlineAsm.h


---
Diffs of the changes:  (+4 -0)

 Value.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.82 llvm/include/llvm/Value.h:1.83
--- llvm/include/llvm/Value.h:1.82	Mon Jan 23 22:12:40 2006
+++ llvm/include/llvm/Value.h	Wed Jan 25 19:54:21 2006
@@ -31,6 +31,7 @@
 class GlobalValue;
 class Function;
 class GlobalVariable;
+class InlineAsm;
 class SymbolTable;
 
 //===----------------------------------------------------------------------===//
@@ -213,6 +214,9 @@
 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;
 }






More information about the llvm-commits mailing list