aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-03 21:52:55 +0000
committerChris Lattner <sabre@nondot.org>2009-02-03 21:52:55 +0000
commit4c4ea17d7f991516c37a871dfa4bbe5723fa85f0 (patch)
tree74b5f0015e81fe5f86d547c693f288f5193ed17b /lib/Lex/PPDirectives.cpp
parent660af749c0ad54cf8f6db611f31f0fa4115e4fd8 (diff)
stub out basic #line handling calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r--lib/Lex/PPDirectives.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp
index 1ff469b825..fa57ab3c81 100644
--- a/lib/Lex/PPDirectives.cpp
+++ b/lib/Lex/PPDirectives.cpp
@@ -651,7 +651,7 @@ void Preprocessor::HandleLineDirective(Token &Tok) {
CheckEndOfDirective("#line");
}
- // FIXME: do something with the #line info.
+ SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID);
}
/// ReadLineMarkerFlags - Parse and validate any flags at the end of a GNU line
@@ -762,10 +762,8 @@ void Preprocessor::HandleDigitDirective(Token &DigitTok) {
return;
}
- // FIXME: do something with the #line info.
-
-
-
+ // FIXME: do something with the #line flag info.
+ SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID);
}