[llvm-commits] [llvm] r77137 - in /llvm/trunk/lib/CodeGen: AsmPrinter/AsmPrinter.cpp ELFWriter.cpp
Chris Lattner
sabre at nondot.org
Sat Jul 25 23:36:41 PDT 2009
Author: lattner
Date: Sun Jul 26 01:36:20 2009
New Revision: 77137
URL: http://llvm.org/viewvc/llvm-project?rev=77137&view=rev
Log:
two files I missed in the last commit.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/CodeGen/ELFWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=77137&r1=77136&r2=77137&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sun Jul 26 01:36:20 2009
@@ -311,14 +311,14 @@
SectionKind Kind;
switch (CPE.getRelocationInfo()) {
default: llvm_unreachable("Unknown section kind");
- case 2: Kind = SectionKind::getReadOnlyWithRel(); break;
- case 1: Kind = SectionKind::getReadOnlyWithRelLocal(); break;
+ case 2: Kind = SectionKind::get(SectionKind::ReadOnlyWithRel); break;
+ case 1: Kind = SectionKind::get(SectionKind::ReadOnlyWithRelLocal); break;
case 0:
switch (TM.getTargetData()->getTypeAllocSize(CPE.getType())) {
- case 4: Kind = SectionKind::getMergableConst4(); break;
- case 8: Kind = SectionKind::getMergableConst8(); break;
- case 16: Kind = SectionKind::getMergableConst16(); break;
- default: Kind = SectionKind::getMergableConst(); break;
+ case 4: Kind = SectionKind::get(SectionKind::MergableConst4); break;
+ case 8: Kind = SectionKind::get(SectionKind::MergableConst8); break;
+ case 16: Kind = SectionKind::get(SectionKind::MergableConst16); break;
+ default: Kind = SectionKind::get(SectionKind::MergableConst); break;
}
}
Modified: llvm/trunk/lib/CodeGen/ELFWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ELFWriter.cpp?rev=77137&r1=77136&r2=77137&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ELFWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/ELFWriter.cpp Sun Jul 26 01:36:20 2009
@@ -157,14 +157,14 @@
SectionKind Kind;
switch (CPE.getRelocationInfo()) {
default: llvm_unreachable("Unknown section kind");
- case 2: Kind = SectionKind::getReadOnlyWithRel(); break;
- case 1: Kind = SectionKind::getReadOnlyWithRelLocal(); break;
+ case 2: Kind = SectionKind::get(SectionKind::ReadOnlyWithRel); break;
+ case 1: Kind = SectionKind::get(SectionKind::ReadOnlyWithRelLocal); break;
case 0:
switch (TM.getTargetData()->getTypeAllocSize(CPE.getType())) {
- case 4: Kind = SectionKind::getMergableConst4(); break;
- case 8: Kind = SectionKind::getMergableConst8(); break;
- case 16: Kind = SectionKind::getMergableConst16(); break;
- default: Kind = SectionKind::getMergableConst(); break;
+ case 4: Kind = SectionKind::get(SectionKind::MergableConst4); break;
+ case 8: Kind = SectionKind::get(SectionKind::MergableConst8); break;
+ case 16: Kind = SectionKind::get(SectionKind::MergableConst16); break;
+ default: Kind = SectionKind::get(SectionKind::MergableConst); break;
}
}
More information about the llvm-commits
mailing list