]> granicus.if.org Git - clang/commitdiff
Reversing part of 79544.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Fri, 21 Aug 2009 04:58:03 +0000 (04:58 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Fri, 21 Aug 2009 04:58:03 +0000 (04:58 +0000)
Need to find a new way to do target specific semanitc checking.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79596 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 153d5ab82bbd6eaef75874c0f5f465b62ee79ee0..401777208376179b536631848fbcd3d9f9412742 100644 (file)
@@ -1240,22 +1240,6 @@ void Sema::CheckFallThroughForBlock(QualType BlockTy, Stmt *Body) {
 /// 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);