diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-08-21 04:58:03 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-08-21 04:58:03 +0000 |
commit | f6d6a228b0faafdfd1cdffe865f47616b6cab7a8 (patch) | |
tree | f6b8c524f56c9e41a4b08e347f592d8a14ea38b3 /lib/Sema/SemaDecl.cpp | |
parent | b8310eae2e419d6a806f3ffc34ec6d163e1a755c (diff) |
Reversing part of 79544.
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
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 153d5ab82b..4017772083 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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); |