summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-05 23:21:30 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-05 23:21:30 +0000
commitbde648030be9431ecb72309d3b85a58b5dc9a9ba (patch)
tree9eafbdfee647e8508acd5085bfb137ddce64c7cf /clang/tools
parenta44d99c9348516493c1ff6eba4d4b60941c5d206 (diff)
downloadbcm5719-llvm-bde648030be9431ecb72309d3b85a58b5dc9a9ba.tar.gz
bcm5719-llvm-bde648030be9431ecb72309d3b85a58b5dc9a9ba.zip
Remove deprecated function 'clang_getDeclSource()'. Use 'clang_getDeclFile()' instead.
llvm-svn: 92803
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/CIndex/CIndex.cpp7
-rw-r--r--clang/tools/CIndex/CIndex.exports1
2 files changed, 0 insertions, 8 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp
index fb359c97a15..20e68b2c5e4 100644
--- a/clang/tools/CIndex/CIndex.cpp
+++ b/clang/tools/CIndex/CIndex.cpp
@@ -589,13 +589,6 @@ CXDeclExtent clang_getDeclExtent(CXDecl AnonDecl) {
return extent;
}
-const char *clang_getDeclSource(CXDecl AnonDecl) {
- assert(AnonDecl && "Passed null CXDecl");
- FileEntry *FEnt = static_cast<FileEntry *>(clang_getDeclSourceFile(AnonDecl));
- assert (FEnt && "Cannot find FileEntry for Decl");
- return clang_getFileName(FEnt);
-}
-
static const FileEntry *getFileEntryFromSourceLocation(SourceManager &SMgr,
SourceLocation SLoc) {
FileID FID;
diff --git a/clang/tools/CIndex/CIndex.exports b/clang/tools/CIndex/CIndex.exports
index ab68217c4dd..4fc769a621c 100644
--- a/clang/tools/CIndex/CIndex.exports
+++ b/clang/tools/CIndex/CIndex.exports
@@ -24,7 +24,6 @@ _clang_getCursorSpelling
_clang_getDeclColumn
_clang_getDeclLine
_clang_getDeclExtent
-_clang_getDeclSource
_clang_getDeclSourceFile
_clang_getDeclSpelling
_clang_getDeclarationName
OpenPOWER on IntegriCloud