[all-commits] [llvm/llvm-project] 7376d9: [NFC] Separate getLastArgIntValue to Basic

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Sat Dec 21 17:40:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7376d9eb38914ff7b6b5f5901d32743f0ee76b5a
      https://github.com/llvm/llvm-project/commit/7376d9eb38914ff7b6b5f5901d32743f0ee76b5a
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    A clang/include/clang/Basic/OptionUtils.h
    M clang/include/clang/Frontend/Utils.h
    M clang/lib/Basic/CMakeLists.txt
    A clang/lib/Basic/OptionUtils.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [NFC] Separate getLastArgIntValue to Basic

getLastArgIntValue is a useful utility function to get command line argument as an integer.
Currently it is in Frontend so that it can only be used by clang -cc1. Move it to basic so
that it can also be used by clang driver.

Differential Revision: https://reviews.llvm.org/D71080




More information about the All-commits mailing list