LLVM API Documentation

llvmc::LanguageMap Class Reference

LanguageMap - Maps from extensions to language names. More...

#include <CompilationGraph.h>

Inheritance diagram for llvmc::LanguageMap:
[legend]
Collaboration diagram for llvmc::LanguageMap:
[legend]

List of all members.

Public Member Functions

const std::string & GetLanguage (const llvm::sys::Path &) const
 GetLanguage - Find the language name corresponding to a given file.


Detailed Description

LanguageMap - Maps from extensions to language names.

Definition at line 36 of file CompilationGraph.h.


Member Function Documentation

const std::string & llvmc::LanguageMap::GetLanguage ( const llvm::sys::Path &  File  )  const

GetLanguage - Find the language name corresponding to a given file.

Definition at line 35 of file CompilationGraph.cpp.

References llvm::StringMap< std::string >::end(), llvm::StringMap< std::string >::find(), and llvm::sys::Path::getSuffix().


The documentation for this class was generated from the following files: