diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-11-30 00:01:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-11-30 00:01:57 +0000 |
commit | 8c05893746d277a7b3342c41321807a2644cef99 (patch) | |
tree | 28f38910100e068627916954e5f7a13e24578d3a /clang/unittests/Lex | |
parent | 7a626570ef4f457caab1302f238955aa1a2c7989 (diff) | |
download | bcm5719-llvm-8c05893746d277a7b3342c41321807a2644cef99.tar.gz bcm5719-llvm-8c05893746d277a7b3342c41321807a2644cef99.zip |
Fix unit tests for ModuleLoader change in r168961.
llvm-svn: 168962
Diffstat (limited to 'clang/unittests/Lex')
-rw-r--r-- | clang/unittests/Lex/LexerTest.cpp | 9 | ||||
-rw-r--r-- | clang/unittests/Lex/PPCallbacksTest.cpp | 9 | ||||
-rw-r--r-- | clang/unittests/Lex/PreprocessingRecordTest.cpp | 9 |
3 files changed, 15 insertions, 12 deletions
diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp index ed4c815a8a0..d8dd2870b1d 100644 --- a/clang/unittests/Lex/LexerTest.cpp +++ b/clang/unittests/Lex/LexerTest.cpp @@ -53,10 +53,11 @@ protected: }; class VoidModuleLoader : public ModuleLoader { - virtual Module *loadModule(SourceLocation ImportLoc, ModuleIdPath Path, - Module::NameVisibilityKind Visibility, - bool IsInclusionDirective) { - return 0; + virtual ModuleLoadResult loadModule(SourceLocation ImportLoc, + ModuleIdPath Path, + Module::NameVisibilityKind Visibility, + bool IsInclusionDirective) { + return ModuleLoadResult(); } }; diff --git a/clang/unittests/Lex/PPCallbacksTest.cpp b/clang/unittests/Lex/PPCallbacksTest.cpp index b3885277914..02b374bc435 100644 --- a/clang/unittests/Lex/PPCallbacksTest.cpp +++ b/clang/unittests/Lex/PPCallbacksTest.cpp @@ -32,10 +32,11 @@ namespace { // Stub out module loading. class VoidModuleLoader : public ModuleLoader { - virtual Module *loadModule(SourceLocation ImportLoc, ModuleIdPath Path, - Module::NameVisibilityKind Visibility, - bool IsInclusionDirective) { - return 0; + virtual ModuleLoadResult loadModule(SourceLocation ImportLoc, + ModuleIdPath Path, + Module::NameVisibilityKind Visibility, + bool IsInclusionDirective) { + return ModuleLoadResult(); } }; diff --git a/clang/unittests/Lex/PreprocessingRecordTest.cpp b/clang/unittests/Lex/PreprocessingRecordTest.cpp index 6056d55f9c8..2bf00483c0f 100644 --- a/clang/unittests/Lex/PreprocessingRecordTest.cpp +++ b/clang/unittests/Lex/PreprocessingRecordTest.cpp @@ -54,10 +54,11 @@ protected: }; class VoidModuleLoader : public ModuleLoader { - virtual Module *loadModule(SourceLocation ImportLoc, ModuleIdPath Path, - Module::NameVisibilityKind Visibility, - bool IsInclusionDirective) { - return 0; + virtual ModuleLoadResult loadModule(SourceLocation ImportLoc, + ModuleIdPath Path, + Module::NameVisibilityKind Visibility, + bool IsInclusionDirective) { + return ModuleLoadResult(); } }; |