[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 18 14:23:08 PDT 2003
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.113 -> 1.114
---
Log message:
Detemplatize the PATypeHandle class, which was only really instantiated on 'Type'.
---
Diffs of the changes:
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.113 llvm/lib/AsmParser/llvmAsmParser.y:1.114
--- llvm/lib/AsmParser/llvmAsmParser.y:1.113 Wed May 21 12:48:56 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Jun 18 14:22:32 2003
@@ -816,7 +816,7 @@
| UpRTypesV '(' ArgTypeListI ')' { // Function derived type?
std::vector<const Type*> Params;
mapto($3->begin(), $3->end(), std::back_inserter(Params),
- std::mem_fun_ref(&PATypeHandle<Type>::get));
+ std::mem_fun_ref(&PATypeHandle::get));
bool isVarArg = Params.size() && Params.back() == Type::VoidTy;
if (isVarArg) Params.pop_back();
@@ -831,7 +831,7 @@
| '{' TypeListI '}' { // Structure type?
std::vector<const Type*> Elements;
mapto($2->begin(), $2->end(), std::back_inserter(Elements),
- std::mem_fun_ref(&PATypeHandle<Type>::get));
+ std::mem_fun_ref(&PATypeHandle::get));
$$ = new PATypeHolder(HandleUpRefs(StructType::get(Elements)));
delete $2;
More information about the llvm-commits
mailing list