[cfe-commits] r79596 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Thu Aug 20 21:58:03 PDT 2009
Author: sgupta
Date: Thu Aug 20 23:58:03 2009
New Revision: 79596
URL: http://llvm.org/viewvc/llvm-project?rev=79596&view=rev
Log:
Reversing part of 79544.
Need to find a new way to do target specific semanitc checking.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=79596&r1=79595&r2=79596&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Aug 20 23:58:03 2009
@@ -1240,22 +1240,6 @@
/// parameters are complete.
bool Sema::CheckParmsForFunctionDef(FunctionDecl *FD) {
bool HasInvalidParm = false;
-
- // PIC16 uses section string to encode the info about ISR.
- // Flash error if ISR has arguments.
- const char *TargetPrefix = Context.Target.getTargetPrefix();
- if (strcmp(TargetPrefix, "pic16") == 0) {
- unsigned ParamCount = FD->getNumParams();
- if (const SectionAttr *SA = FD->getAttr<SectionAttr>()) {
- const std::string &SecString = SA->getName();
- if (SecString.find("interrupt") != std::string::npos
- && ParamCount > 0) {
- Diag(FD->getLocation(), diag::warn_ISR_has_arguments)
- << FD->getNameAsString();
- }
- }
- }
-
for (unsigned p = 0, NumParams = FD->getNumParams(); p < NumParams; ++p) {
ParmVarDecl *Param = FD->getParamDecl(p);
More information about the cfe-commits
mailing list