inline Sema::getLangOptions, rdar://6515190.  This speeds up
fsyntax-only with PTH by 3%.




git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62774 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index b574dc3..9f1f2a3 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -108,6 +108,7 @@
 /// Sema - This implements semantic analysis and AST building for C.
 class Sema : public Action {
 public:
+  const LangOptions &LangOpts;
   Preprocessor &PP;
   ASTContext &Context;
   ASTConsumer &Consumer;
@@ -236,7 +237,7 @@
 public:
   Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer);
   
-  const LangOptions &getLangOptions() const;
+  const LangOptions &getLangOptions() const { return LangOpts; }
   Diagnostic &getDiagnostics() const { return Diags; }
   SourceManager &getSourceManager() const { return SourceMgr; }