[cfe-commits] r168598 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Mon Nov 26 10:59:10 PST 2012
Author: asl
Date: Mon Nov 26 12:59:10 2012
New Revision: 168598
URL: http://llvm.org/viewvc/llvm-project?rev=168598&view=rev
Log:
MSPGCC renamed ISR vectors from vector_<address> to __isr_<number>. This patch makes Clang reflect this scheme.
Patch by Job Noorman!
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=168598&r1=168597&r2=168598&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Nov 26 12:59:10 2012
@@ -3789,9 +3789,9 @@
F->addFnAttr(llvm::Attributes::NoInline);
// Step 3: Emit ISR vector alias.
- unsigned Num = attr->getNumber() + 0xffe0;
+ unsigned Num = attr->getNumber() / 2;
new llvm::GlobalAlias(GV->getType(), llvm::Function::ExternalLinkage,
- "vector_" + Twine::utohexstr(Num),
+ "__isr_" + Twine(Num),
GV, &M.getModule());
}
}
More information about the cfe-commits
mailing list