summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-08-21 04:58:03 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-08-21 04:58:03 +0000
commit91f8cd9a912be499b5a28ec2b8fb0420538f9f8b (patch)
tree893663fe0865cb7bbb77341330f5de828bfae92e
parent43a1decc8c1d1bd6579d683ed0465b2126ddcf62 (diff)
downloadbcm5719-llvm-91f8cd9a912be499b5a28ec2b8fb0420538f9f8b.tar.gz
bcm5719-llvm-91f8cd9a912be499b5a28ec2b8fb0420538f9f8b.zip
Reversing part of 79544.
Need to find a new way to do target specific semanitc checking. llvm-svn: 79596
-rw-r--r--clang/lib/Sema/SemaDecl.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 153d5ab82bb..40177720837 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud