diff options
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.cc b/src/util.cc index 47cb5c4..f25b7eb 100644 --- a/src/util.cc +++ b/src/util.cc @@ -82,12 +82,12 @@ std::vector<std::string> readDeps(const std::string& depFile) return output; } -Language languageFromExtension(const std::filesystem::path& file) +ctor::language languageFromExtension(const std::filesystem::path& file) { auto ext = file.extension().string(); if(ext == ".c") { - return Language::C; + return ctor::language::c; } if(ext == ".C" || @@ -98,14 +98,14 @@ Language languageFromExtension(const std::filesystem::path& file) ext == ".cp" || ext == ".cxx") { - return Language::Cpp; + return ctor::language::cpp; } if(ext == ".s" || ext == ".S" || ext == ".asm") { - return Language::Asm; + return ctor::language::assembler; } std::cerr << "Could not deduce language from " << file.string() << "\n"; |